mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
hotfix: capslock on macos chrome.
This commit is contained in:
parent
2c67394a7a
commit
810759b641
@ -1357,6 +1357,16 @@ Guacamole.Keyboard = function Keyboard(element) {
|
|||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
//20230613: NEKO: Fix capslock on macos chrome
|
||||||
|
// if is capslock, keyup is unreliable and event was not marked, then
|
||||||
|
// we need to pretend that this is a keydown event because we obviously
|
||||||
|
// did not receive it
|
||||||
|
if (e.keyCode == 20 && quirks.capsLockKeyupUnreliable) {
|
||||||
|
eventLog.push(new KeydownEvent(e));
|
||||||
|
interpret_events();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Log event, call for interpretation
|
// Log event, call for interpretation
|
||||||
eventLog.push(new KeyupEvent(e));
|
eventLog.push(new KeyupEvent(e));
|
||||||
interpret_events();
|
interpret_events();
|
||||||
|
Loading…
Reference in New Issue
Block a user