feat: stop event propagation when key handled (#5091)

* feat: stop event propagation when key handled

* don't handle s/g shortcuts if cmd/ctrl/alt pressed
This commit is contained in:
David Luzar 2022-04-24 18:29:38 +02:00 committed by GitHub
parent 9902092fd1
commit 832b88249c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -117,6 +117,7 @@ export class ActionManager {
trackAction(action, "keyboard", appState, elements, this.app, null);
event.preventDefault();
event.stopPropagation();
this.updater(data[0].perform(elements, appState, value, this.app));
return true;
}