Merge pull request #199 from DrJKL/drjkl/ignore-modifiers

Ignore keypresses if ctrl/option/alt is pressed.
This commit is contained in:
Regis Gaughan, III
2024-04-21 16:51:45 -04:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -92,6 +92,9 @@ export class Bookmark extends RgthreeBaseVirtualNode {
if (['input','textarea'].includes(target.localName)) {
return;
}
if (event.ctrlKey || event.metaKey || event.altKey) {
return;
}
if (event.key.toLocaleLowerCase() === this.widgets[0]!.value.toLocaleLowerCase()) {
this.canvasToBookmark();
}