GUAC-324: Speed up animation, show menu when Ctrl-Alt-Shift is pressed.
This commit is contained in:
1 parent
f9c9b67e72
commit
d3dc38f869
2 files changed
+8
-18
No files matched your search
@@ -1270,21 +1270,11 @@ GuacUI.Client.attach = function(guac) {
|
||||
|
||||
guac.sendKeyEvent(0, keysym);
|
||||
|
||||
// If lifting up on shift, toggle keyboard if rest of gesture
|
||||
// If lifting up on shift, toggle menu visibility if rest of gesture
|
||||
// conditions satisfied
|
||||
if (show_keyboard_gesture_possible && keysym === 0xFFE1) {
|
||||
if (keyboard.pressed[0xFFE3] && keyboard.pressed[0xFFE9]) {
|
||||
|
||||
// If in INTERACTIVE mode, switch to OSK
|
||||
if (GuacUI.StateManager.getState() === GuacUI.Client.states.INTERACTIVE)
|
||||
GuacUI.StateManager.setState(GuacUI.Client.states.OSK);
|
||||
|
||||
// If in OSK mode, switch to INTERACTIVE
|
||||
else if (GuacUI.StateManager.getState() === GuacUI.Client.states.OSK)
|
||||
GuacUI.StateManager.setState(GuacUI.Client.states.INTERACTIVE);
|
||||
|
||||
}
|
||||
}
|
||||
if (show_keyboard_gesture_possible && keysym === 0xFFE1
|
||||
&& keyboard.pressed[0xFFE3] && keyboard.pressed[0xFFE9])
|
||||
GuacUI.Client.showMenu(!GuacUI.Client.isMenuShown());
|
||||
|
||||
// Detect if no keys are pressed
|
||||
var reset_gesture = true;
|
||||
|
||||
Reference in new issue
Block a user