mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
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:
parent
9902092fd1
commit
832b88249c
2 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue