mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
don't prevent select-element devTools action (#1446)
This commit is contained in:
parent
519a9ca493
commit
83199164ae
1 changed files with 5 additions and 0 deletions
|
@ -1048,6 +1048,11 @@ class App extends React.Component<any, AppState> {
|
|||
// Input handling
|
||||
|
||||
private onKeyDown = withBatchedUpdates((event: KeyboardEvent) => {
|
||||
// ensures we don't prevent devTools select-element feature
|
||||
if (event[KEYS.CTRL_OR_CMD] && event.shiftKey && event.key === "C") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
(isWritableElement(event.target) && event.key !== KEYS.ESCAPE) ||
|
||||
// case: using arrows to move between buttons
|
||||
|
|
Loading…
Add table
Reference in a new issue