forked from RetGal/Dayon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
untab.patch
322 lines (290 loc) · 13.8 KB
/
untab.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
Index: src/main/java/mpo/dayon/assistant/gui/AssistantFrame.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/main/java/mpo/dayon/assistant/gui/AssistantFrame.java b/src/main/java/mpo/dayon/assistant/gui/AssistantFrame.java
--- a/src/main/java/mpo/dayon/assistant/gui/AssistantFrame.java (revision 6ed7c14db2fd421167fd37917c7a83ac6dca535f)
+++ b/src/main/java/mpo/dayon/assistant/gui/AssistantFrame.java (date 1707730191755)
@@ -19,9 +19,9 @@
import java.util.Set;
import java.util.concurrent.atomic.AtomicBoolean;
-import static java.awt.event.KeyEvent.*;
+import static java.awt.event.KeyEvent.VK_CONTROL;
+import static java.awt.event.KeyEvent.VK_WINDOWS;
import static java.lang.String.format;
-import static java.lang.Thread.sleep;
import static mpo.dayon.common.babylon.Babylon.translate;
import static mpo.dayon.common.gui.common.ImageUtilities.getOrCreateIcon;
import static mpo.dayon.common.gui.toolbar.ToolBar.DEFAULT_FONT;
@@ -51,8 +51,6 @@
private final JToggleButton ctrlKeyToggleButton;
- private final JButton tabKeyButton;
-
private final JToggleButton fitToScreenToggleButton;
private final JToggleButton keepAspectRatioToggleButton;
@@ -64,7 +62,6 @@
private final AtomicBoolean ctrlKeyActivated = new AtomicBoolean(false);
private final AtomicBoolean fitToScreenActivated = new AtomicBoolean(false);
-
private final AtomicBoolean keepAspectRatioActivated = new AtomicBoolean(false);
private final AtomicBoolean isImmutableWindowsSize = new AtomicBoolean(false);
@@ -88,7 +85,6 @@
this.keepAspectRatioToggleButton = createToggleButton(createToggleKeepAspectRatioAction(), false);
this.windowsKeyToggleButton = createToggleButton(createSendWindowsKeyAction());
this.ctrlKeyToggleButton = createToggleButton(createSendCtrlKeyAction());
- this.tabKeyButton = createButton(createSendTabKeyAction());
setupToolBar(createToolBar());
setupStatusBar(createStatusBar(counters));
assistantPanel = new AssistantPanel();
@@ -235,7 +231,6 @@
sessionPanel.add(createButton(actions.getRemoteClipboardSetAction()));
sessionPanel.add(windowsKeyToggleButton);
sessionPanel.add(ctrlKeyToggleButton);
- sessionPanel.add(tabKeyButton);
sessionPanel.add(createButton(actions.getResetAction()));
JPanel settingsPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
@@ -303,7 +298,6 @@
controlActivated.set(!controlActivated.get());
windowsKeyToggleButton.setEnabled(controlActivated.get());
ctrlKeyToggleButton.setEnabled(controlActivated.get());
- tabKeyButton.setEnabled(controlActivated.get());
}
};
remoteControl.putValue(Action.SHORT_DESCRIPTION, translate("control.mode"));
@@ -345,26 +339,6 @@
return sendCtrlKey;
}
- private Action createSendTabKeyAction() {
- final Action sendTabKey = new AbstractAction() {
- @Override
- public void actionPerformed(ActionEvent ev) {
- fireOnKeyPressed(VK_TAB, ' ');
- try {
- sleep(11L);
- } catch (InterruptedException e) {
- Log.error("Thread interrupted", e);
- Thread.currentThread().interrupt();
- } finally {
- fireOnKeyReleased(VK_TAB, ' ');
- }
- }
- };
- sendTabKey.putValue(Action.SHORT_DESCRIPTION, translate("send.tabKey"));
- sendTabKey.putValue(Action.SMALL_ICON, getOrCreateIcon(ImageNames.TAB));
- return sendTabKey;
- }
-
private Action createToggleFixScreenAction() {
final Action fitScreen = new AbstractAction() {
@Override
@@ -557,7 +531,6 @@
controlToggleButton.setEnabled(false);
windowsKeyToggleButton.setEnabled(false);
ctrlKeyToggleButton.setEnabled(false);
- tabKeyButton.setEnabled(false);
disableTransferControls();
}
@@ -571,7 +544,6 @@
controlToggleButton.setEnabled(true);
windowsKeyToggleButton.setSelected(false);
ctrlKeyToggleButton.setSelected(false);
- tabKeyButton.setSelected(false);
enableTransferControls();
}
Index: src/main/java/mpo/dayon/common/gui/common/ImageNames.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/main/java/mpo/dayon/common/gui/common/ImageNames.java b/src/main/java/mpo/dayon/common/gui/common/ImageNames.java
--- a/src/main/java/mpo/dayon/common/gui/common/ImageNames.java (revision 6ed7c14db2fd421167fd37917c7a83ac6dca535f)
+++ b/src/main/java/mpo/dayon/common/gui/common/ImageNames.java (date 1707730191755)
@@ -29,7 +29,6 @@
public static final String START = "start.png";
public static final String START_LARGE = "start_l.png";
public static final String STOP = "stop.png";
- public static final String TAB = "tab.png";
public static final String UP = "up.png";
public static final String USERS = "users.png";
public static final String WAITING = "waiting.gif";
Index: src/main/resources/Babylon.properties
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>NATIVE_TO_ASCII_ISO-8859-1
===================================================================
diff --git a/src/main/resources/Babylon.properties b/src/main/resources/Babylon.properties
--- a/src/main/resources/Babylon.properties (revision 6ed7c14db2fd421167fd37917c7a83ac6dca535f)
+++ b/src/main/resources/Babylon.properties (date 1707730191755)
@@ -171,7 +171,6 @@
clipboard.setRemote = Set assisted clipboard
send.ctrlKey = Send Ctrl key
-send.tabKey = Send Tab key
send.windowsKey = Send Windows key
toggle.screen.mode = Toggle fit screen mode
Index: src/main/resources/Babylon_de.properties
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>NATIVE_TO_ASCII_ISO-8859-1
===================================================================
diff --git a/src/main/resources/Babylon_de.properties b/src/main/resources/Babylon_de.properties
--- a/src/main/resources/Babylon_de.properties (revision 6ed7c14db2fd421167fd37917c7a83ac6dca535f)
+++ b/src/main/resources/Babylon_de.properties (date 1707730191755)
@@ -169,10 +169,8 @@
clipboard.getRemote = Zwischenablage des Assistierten übertragen
clipboard.setRemote = Zwischenablage an Assistierten übertragen
-
send.ctrlKey = Ctrl-Taste senden
-send.tabKey = Tabulator-Taste senden
-send.windowsKey = Windows-Taste senden
+send.windowsKey = Windowstaste senden
toggle.screen.mode = Anzeigemodus umschalten
toggle.keep.aspect = Beibehaltung des Seitenverhältnisses umschalten
Index: src/main/resources/Babylon_es.properties
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>NATIVE_TO_ASCII_ISO-8859-1
===================================================================
diff --git a/src/main/resources/Babylon_es.properties b/src/main/resources/Babylon_es.properties
--- a/src/main/resources/Babylon_es.properties (revision 6ed7c14db2fd421167fd37917c7a83ac6dca535f)
+++ b/src/main/resources/Babylon_es.properties (date 1707730191755)
@@ -169,10 +169,8 @@
clipboard.getRemote = Pegar portapapeles del asistido
clipboard.setRemote = Copiar al portapapeles del asistido
-
-send.ctrlKey = Enviar tecla Ctrl
-send.tabKey = Enviar tecla tabulador
-send.windowsKey = Enviar tecla Windows
+send.ctrlKey = Enviar la tecla Ctrl
+send.windowsKey = Enviar la tecla Windows
toggle.screen.mode = Cambiar modo de visualización
toggle.keep.aspect = Alternar la conservación de la relación de aspecto
Index: src/main/resources/Babylon_fr.properties
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>NATIVE_TO_ASCII_ISO-8859-1
===================================================================
diff --git a/src/main/resources/Babylon_fr.properties b/src/main/resources/Babylon_fr.properties
--- a/src/main/resources/Babylon_fr.properties (revision 6ed7c14db2fd421167fd37917c7a83ac6dca535f)
+++ b/src/main/resources/Babylon_fr.properties (date 1707730191755)
@@ -169,9 +169,7 @@
clipboard.getRemote = Obtenir planchette de l'assisté
clipboard.setRemote = Copier planchette vers l'assisté
-
send.ctrlKey = Envoyer la clé Ctrl
-send.tabKey = Envoyer la clé de tabulation
send.windowsKey = Envoyer la clé Windows
toggle.screen.mode = Ajuster le mode écran
Index: src/main/resources/Babylon_it.properties
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>NATIVE_TO_ASCII_ISO-8859-1
===================================================================
diff --git a/src/main/resources/Babylon_it.properties b/src/main/resources/Babylon_it.properties
--- a/src/main/resources/Babylon_it.properties (revision 6ed7c14db2fd421167fd37917c7a83ac6dca535f)
+++ b/src/main/resources/Babylon_it.properties (date 1707730191755)
@@ -169,9 +169,7 @@
clipboard.getRemote = Ottieni appunti assistiti
clipboard.setRemote = Imposta appunti assistiti
-
send.ctrlKey = Invia il tasto Ctrl
-send.tabKey = Invia il tasto tabulazione
send.windowsKey = Invia il tasto Windows
toggle.screen.mode = Attiva/disattiva la modalità di adattamento allo schermo
Index: src/main/resources/Babylon_ru.properties
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>NATIVE_TO_ASCII_ISO-8859-1
===================================================================
diff --git a/src/main/resources/Babylon_ru.properties b/src/main/resources/Babylon_ru.properties
--- a/src/main/resources/Babylon_ru.properties (revision 6ed7c14db2fd421167fd37917c7a83ac6dca535f)
+++ b/src/main/resources/Babylon_ru.properties (date 1707730191755)
@@ -169,9 +169,7 @@
clipboard.getRemote = Получить буфер обмена помогала
clipboard.setRemote = Установить буфер обмена помогала
-
send.ctrlKey = Отправить клавишу Ctrl
-send.tabKey = отправить клавишу Tab
send.windowsKey = Отправить клавишу Windows
toggle.screen.mode = Переключить режим отображения на экране
Index: src/main/resources/Babylon_sv.properties
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>NATIVE_TO_ASCII_ISO-8859-1
===================================================================
diff --git a/src/main/resources/Babylon_sv.properties b/src/main/resources/Babylon_sv.properties
--- a/src/main/resources/Babylon_sv.properties (revision 6ed7c14db2fd421167fd37917c7a83ac6dca535f)
+++ b/src/main/resources/Babylon_sv.properties (date 1707730191755)
@@ -169,9 +169,7 @@
clipboard.getRemote = Hämta urklipp från hjälptagare
clipboard.setRemote = Skicka urklipp till hjälptagare
-
send.ctrlKey = Skicka Ctrl-tangenten
-send.tabKey = Skicka Tab-tangenten
send.windowsKey = Skicka Windows-tangent
toggle.screen.mode = Växla skärmläge
Index: src/main/resources/Babylon_tr.properties
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>NATIVE_TO_ASCII_ISO-8859-1
===================================================================
diff --git a/src/main/resources/Babylon_tr.properties b/src/main/resources/Babylon_tr.properties
--- a/src/main/resources/Babylon_tr.properties (revision 6ed7c14db2fd421167fd37917c7a83ac6dca535f)
+++ b/src/main/resources/Babylon_tr.properties (date 1707730191755)
@@ -169,9 +169,7 @@
clipboard.getRemote = Panodaki veriyi al
clipboard.setRemote = Panodaki veriyi gönder
-
send.ctrlKey = Ctrl tuşunu gönder
-send.tabKey = Tab tuşunu gönder
send.windowsKey = Windows tuşunu gönder
toggle.screen.mode = Ekrana sığdır modunu aç/kapat
Index: src/main/resources/Babylon_zh.properties
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>NATIVE_TO_ASCII_ISO-8859-1
===================================================================
diff --git a/src/main/resources/Babylon_zh.properties b/src/main/resources/Babylon_zh.properties
--- a/src/main/resources/Babylon_zh.properties (revision 6ed7c14db2fd421167fd37917c7a83ac6dca535f)
+++ b/src/main/resources/Babylon_zh.properties (date 1707730191755)
@@ -265,11 +265,8 @@
clipboard.getRemote = 获取远程主机剪贴板
# Set assisted clipboard
clipboard.setRemote = 发送本机剪贴板到远程主机
-
# Send Ctrl key
send.ctrlKey = 发送 Ctrl 键
-# Send Tab key
-send.tabKey = 发送 Tab 键
# Send Windows key
send.windowsKey = 发送 Windows 键
diff --git a/src/main/resources/images/100/tab.png b/src/main/resources/images/100/tab.png
deleted file mode 100644
index ee39dbfad2788be431658aa1c37fd165f54069ac..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
diff --git a/src/main/resources/images/125/tab.png b/src/main/resources/images/125/tab.png
deleted file mode 100644
index 3b774e6c3a5c729bc1fe3e65f24d278c37a1fb45..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
diff --git a/src/main/resources/images/150/tab.png b/src/main/resources/images/150/tab.png
deleted file mode 100644
index b9c5ebb3aeb5cc8f9a3a9949a341966a6a4edb41..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
diff --git a/src/main/resources/images/175/tab.png b/src/main/resources/images/175/tab.png
deleted file mode 100644
index 81d74ead21fd21f49158af2dc43f5f9c63110553..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
diff --git a/src/main/resources/images/200/tab.png b/src/main/resources/images/200/tab.png
deleted file mode 100644
index 95f060ca558ccb657b8c05300b3ee3845acc9a96..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001