mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -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
|
// Shape switching
|
||||||
if (event.key === KEYS.ESCAPE) {
|
if (event.key === KEYS.ESCAPE) {
|
||||||
editorJotaiStore.set(shapeSwitchAtom, null);
|
editorJotaiStore.set(shapeSwitchAtom, null);
|
||||||
} else if (event.key === KEYS.TAB) {
|
} else if (
|
||||||
|
event.key === KEYS.TAB &&
|
||||||
|
document.activeElement === this.excalidrawContainerRef?.current
|
||||||
|
) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
const { generic, linear } =
|
const { generic, linear } =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue