mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-07 21:47:02 +09:00
JS-6358: fix
This commit is contained in:
parent
5015885843
commit
c5394cc281
3 changed files with 7 additions and 3 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -47,7 +47,7 @@
|
|||
"install": "^0.13.0",
|
||||
"jquery": "^3.5.1",
|
||||
"js-htmlencode": "^0.3.0",
|
||||
"katex": "^0.16.11",
|
||||
"katex": "^0.16.22",
|
||||
"keytar": "^7.7.0",
|
||||
"lazy-val": "^1.0.4",
|
||||
"lodash": "^4.17.20",
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
"install": "^0.13.0",
|
||||
"jquery": "^3.5.1",
|
||||
"js-htmlencode": "^0.3.0",
|
||||
"katex": "^0.16.11",
|
||||
"katex": "^0.16.22",
|
||||
"keytar": "^7.7.0",
|
||||
"lazy-val": "^1.0.4",
|
||||
"lodash": "^4.17.20",
|
||||
|
|
|
@ -1593,6 +1593,10 @@ class Keyboard {
|
|||
if (e.metaKey) {
|
||||
ret.push('cmd');
|
||||
};
|
||||
// Add CapsLock as a modifier if active
|
||||
if (e.getModifierState && e.getModifierState('CapsLock')) {
|
||||
ret.push('capslock');
|
||||
};
|
||||
return ret;
|
||||
};
|
||||
|
||||
|
@ -1638,7 +1642,7 @@ class Keyboard {
|
|||
};
|
||||
|
||||
keys.sort();
|
||||
|
||||
|
||||
for (const k of keys) {
|
||||
if (which == J.Key[k]) {
|
||||
pressed.push(k);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue