mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
only tab to switch if focusing on app container
This commit is contained in:
parent
f35c4c2b46
commit
beb0bd1528
1 changed files with 4 additions and 1 deletions
|
@ -4158,7 +4158,10 @@ class App extends React.Component<AppProps, AppState> {
|
|||
// Shape switching
|
||||
if (event.key === KEYS.ESCAPE) {
|
||||
editorJotaiStore.set(shapeSwitchAtom, null);
|
||||
} else if (event.key === KEYS.TAB) {
|
||||
} else if (
|
||||
event.key === KEYS.TAB &&
|
||||
document.activeElement === this.excalidrawContainerRef?.current
|
||||
) {
|
||||
event.preventDefault();
|
||||
|
||||
const { generic, linear } =
|
||||
|
|
Loading…
Add table
Reference in a new issue