Skip to content

Commit ba41403

Browse files
committed
Add git attributes to fix Spotless formatter check
1 parent c8cf0fc commit ba41403

File tree

7 files changed

+440
-423
lines changed

7 files changed

+440
-423
lines changed

.gitattributes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
* text eol=lf
2+
3+
# Images
4+
*.png binary
5+
*.jpg binary
6+
*.jpeg binary
7+
*.gif binary
8+
*.ico binary
9+
*.bmp binary
10+
*.webp binary
11+
12+
# Other binaries
13+
*.class binary
14+
*.so binary
15+
*.dll binary
16+
*.dylib binary
17+
*.exe binary

fx-onscreen-keyboard-swing/src/main/java/org/comtel2000/swing/robot/NativeAsciiRobotHandler.java

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -76,35 +76,35 @@ private void send(char ch, boolean ctrl) {
7676
if (ctrl) {
7777
switch (ch) {
7878
case VK_ENTER,
79-
VK_BACK_SPACE,
80-
VK_DELETE,
81-
VK_ESCAPE,
82-
VK_SPACE,
83-
VK_TAB,
84-
VK_UP,
85-
VK_DOWN,
86-
VK_LEFT,
87-
VK_RIGHT,
88-
VK_UNDO,
89-
VK_AGAIN,
90-
VK_HOME,
91-
VK_END,
92-
VK_PAGE_UP,
93-
VK_PAGE_DOWN,
94-
VK_HELP,
95-
VK_PRINTSCREEN,
96-
VK_F1,
97-
VK_F2,
98-
VK_F3,
99-
VK_F4,
100-
VK_F5,
101-
VK_F6,
102-
VK_F7,
103-
VK_F8,
104-
VK_F9,
105-
VK_F10,
106-
VK_F11,
107-
VK_F12:
79+
VK_BACK_SPACE,
80+
VK_DELETE,
81+
VK_ESCAPE,
82+
VK_SPACE,
83+
VK_TAB,
84+
VK_UP,
85+
VK_DOWN,
86+
VK_LEFT,
87+
VK_RIGHT,
88+
VK_UNDO,
89+
VK_AGAIN,
90+
VK_HOME,
91+
VK_END,
92+
VK_PAGE_UP,
93+
VK_PAGE_DOWN,
94+
VK_HELP,
95+
VK_PRINTSCREEN,
96+
VK_F1,
97+
VK_F2,
98+
VK_F3,
99+
VK_F4,
100+
VK_F5,
101+
VK_F6,
102+
VK_F7,
103+
VK_F8,
104+
VK_F9,
105+
VK_F10,
106+
VK_F11,
107+
VK_F12:
108108
robot.keyPress(ch);
109109
robot.keyRelease(ch);
110110
return;
Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
1-
/* Copyright (c) 2025-2000 comtel2000 (BSD 3-Clause) */
2-
package org.comtel2000.keyboard;
3-
4-
import java.util.Collections;
5-
import java.util.HashMap;
6-
import java.util.Map;
7-
import javafx.scene.Node;
8-
import javafx.scene.control.TextInputControl;
9-
import org.comtel2000.keyboard.control.KeyBoardPopup;
10-
import org.comtel2000.keyboard.control.KeyBoardPopup.Visibility;
11-
12-
public class FXOK {
13-
14-
private static KeyBoardPopup popup;
15-
16-
private FXOK() {}
17-
18-
public static void registerPopup(KeyBoardPopup p) {
19-
popup = p;
20-
}
21-
22-
public static void setVisible(final Visibility visible, final TextInputControl textNode) {
23-
if (popup == null) {
24-
return;
25-
}
26-
popup.setVisible(visible, textNode);
27-
}
28-
29-
public static Map<String, String> getVkProperties(Node node) {
30-
if (node.hasProperties()) {
31-
Map<String, String> vkProps = new HashMap<>();
32-
node.getProperties()
33-
.forEach(
34-
(key, value) -> {
35-
if (key.toString().startsWith("vk")) {
36-
37-
vkProps.put(key.toString(), String.valueOf(value));
38-
}
39-
});
40-
return vkProps;
41-
}
42-
if (node.getParent() != null && node.getParent().hasProperties()) {
43-
Map<String, String> vkProps = new HashMap<>();
44-
node.getParent()
45-
.getProperties()
46-
.forEach(
47-
(key, value) -> {
48-
if (key.toString().startsWith("vk")) {
49-
vkProps.put(key.toString(), String.valueOf(value));
50-
}
51-
});
52-
return vkProps;
53-
}
54-
return Collections.emptyMap();
55-
}
56-
57-
public static KeyBoardPopup getPopup() {
58-
return popup;
59-
}
60-
}
1+
/* Copyright (c) 2025-2000 comtel2000 (BSD 3-Clause) */
2+
package org.comtel2000.keyboard;
3+
4+
import java.util.Collections;
5+
import java.util.HashMap;
6+
import java.util.Map;
7+
import javafx.scene.Node;
8+
import javafx.scene.control.TextInputControl;
9+
import org.comtel2000.keyboard.control.KeyBoardPopup;
10+
import org.comtel2000.keyboard.control.KeyBoardPopup.Visibility;
11+
12+
public class FXOK {
13+
14+
private static KeyBoardPopup popup;
15+
16+
private FXOK() {}
17+
18+
public static void registerPopup(KeyBoardPopup p) {
19+
popup = p;
20+
}
21+
22+
public static void setVisible(final Visibility visible, final TextInputControl textNode) {
23+
if (popup == null) {
24+
return;
25+
}
26+
popup.setVisible(visible, textNode);
27+
}
28+
29+
public static Map<String, String> getVkProperties(Node node) {
30+
if (node.hasProperties()) {
31+
Map<String, String> vkProps = new HashMap<>();
32+
node.getProperties()
33+
.forEach(
34+
(key, value) -> {
35+
if (key.toString().startsWith("vk")) {
36+
37+
vkProps.put(key.toString(), String.valueOf(value));
38+
}
39+
});
40+
return vkProps;
41+
}
42+
if (node.getParent() != null && node.getParent().hasProperties()) {
43+
Map<String, String> vkProps = new HashMap<>();
44+
node.getParent()
45+
.getProperties()
46+
.forEach(
47+
(key, value) -> {
48+
if (key.toString().startsWith("vk")) {
49+
vkProps.put(key.toString(), String.valueOf(value));
50+
}
51+
});
52+
return vkProps;
53+
}
54+
return Collections.emptyMap();
55+
}
56+
57+
public static KeyBoardPopup getPopup() {
58+
return popup;
59+
}
60+
}
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
/* Copyright (c) 2025-2000 comtel2000 (BSD 3-Clause) */
2-
package org.comtel2000.keyboard.control.skin;
3-
4-
import javafx.scene.control.TextArea;
5-
import javafx.scene.control.skin.TextAreaSkin;
6-
import org.comtel2000.keyboard.FXOK;
7-
import org.comtel2000.keyboard.control.KeyBoardPopup.Visibility;
8-
9-
class KeyboardTextAreaSkin extends TextAreaSkin {
10-
11-
public KeyboardTextAreaSkin(TextArea textInput) {
12-
super(textInput);
13-
addFocusListener(textInput);
14-
}
15-
16-
private void addFocusListener(TextArea textInput) {
17-
textInput
18-
.focusedProperty()
19-
.addListener(
20-
(l, a, b) -> FXOK.setVisible(b ? Visibility.SHOW : Visibility.HIDE, textInput));
21-
}
22-
}
1+
/* Copyright (c) 2025-2000 comtel2000 (BSD 3-Clause) */
2+
package org.comtel2000.keyboard.control.skin;
3+
4+
import javafx.scene.control.TextArea;
5+
import javafx.scene.control.skin.TextAreaSkin;
6+
import org.comtel2000.keyboard.FXOK;
7+
import org.comtel2000.keyboard.control.KeyBoardPopup.Visibility;
8+
9+
class KeyboardTextAreaSkin extends TextAreaSkin {
10+
11+
public KeyboardTextAreaSkin(TextArea textInput) {
12+
super(textInput);
13+
addFocusListener(textInput);
14+
}
15+
16+
private void addFocusListener(TextArea textInput) {
17+
textInput
18+
.focusedProperty()
19+
.addListener(
20+
(l, a, b) -> FXOK.setVisible(b ? Visibility.SHOW : Visibility.HIDE, textInput));
21+
}
22+
}
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
/* Copyright (c) 2025-2000 comtel2000 (BSD 3-Clause) */
2-
package org.comtel2000.keyboard.control.skin;
3-
4-
import javafx.scene.control.TextField;
5-
import javafx.scene.control.skin.TextFieldSkin;
6-
import org.comtel2000.keyboard.FXOK;
7-
import org.comtel2000.keyboard.control.KeyBoardPopup.Visibility;
8-
9-
class KeyboardTextFieldSkin extends TextFieldSkin {
10-
11-
public KeyboardTextFieldSkin(TextField textInput) {
12-
super(textInput);
13-
addFocusListener(textInput);
14-
}
15-
16-
private void addFocusListener(TextField textInput) {
17-
textInput
18-
.focusedProperty()
19-
.addListener(
20-
(l, a, b) -> FXOK.setVisible(b ? Visibility.SHOW : Visibility.HIDE, textInput));
21-
}
22-
}
1+
/* Copyright (c) 2025-2000 comtel2000 (BSD 3-Clause) */
2+
package org.comtel2000.keyboard.control.skin;
3+
4+
import javafx.scene.control.TextField;
5+
import javafx.scene.control.skin.TextFieldSkin;
6+
import org.comtel2000.keyboard.FXOK;
7+
import org.comtel2000.keyboard.control.KeyBoardPopup.Visibility;
8+
9+
class KeyboardTextFieldSkin extends TextFieldSkin {
10+
11+
public KeyboardTextFieldSkin(TextField textInput) {
12+
super(textInput);
13+
addFocusListener(textInput);
14+
}
15+
16+
private void addFocusListener(TextField textInput) {
17+
textInput
18+
.focusedProperty()
19+
.addListener(
20+
(l, a, b) -> FXOK.setVisible(b ? Visibility.SHOW : Visibility.HIDE, textInput));
21+
}
22+
}

0 commit comments

Comments
 (0)