1
0
Fork 0
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:
Andrew Simachev 2025-06-06 09:24:10 +02:00
parent 5015885843
commit c5394cc281
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF
3 changed files with 7 additions and 3 deletions

2
package-lock.json generated
View file

@ -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",

View file

@ -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",

View file

@ -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);