mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
changed test to Character.isISOControl
This commit is contained in:
@ -130,7 +130,7 @@ public class EditorListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The char is not control code when CTRL key pressed? It should be a shortcut.
|
// The char is not control code when CTRL key pressed? It should be a shortcut.
|
||||||
if (c >= ' ') {
|
if (!Character.isISOControl(c)) {
|
||||||
event.consume();
|
event.consume();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -487,7 +487,7 @@ public class EditorListener {
|
|||||||
|
|
||||||
if ((event.getModifiers() & KeyEvent.CTRL_MASK) != 0) {
|
if ((event.getModifiers() & KeyEvent.CTRL_MASK) != 0) {
|
||||||
// The char is not control code when CTRL key pressed? It should be a shortcut.
|
// The char is not control code when CTRL key pressed? It should be a shortcut.
|
||||||
if (c >= ' ') {
|
if (!Character.isISOControl(c)) {
|
||||||
event.consume();
|
event.consume();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user