mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix ability to use arrow keys to navigate between shapes (#646)
This is the only way to navigate using the keyboard and was prevented by #596. Now it works fine. Test Plan: - Click on selection icon - Use left/right arrow keys to move between tool icons, that works. - Click on a shape, cmd+c - Click on the selection icon - Cmd+v, it pastes correctly
This commit is contained in:
parent
39674fe2b0
commit
47f6328ae1
2 changed files with 14 additions and 10 deletions
|
@ -30,11 +30,10 @@ export function isInputLike(
|
|||
| HTMLSelectElement
|
||||
| HTMLDivElement {
|
||||
return (
|
||||
((target instanceof HTMLElement && target.dataset.type === "wysiwyg") ||
|
||||
target instanceof HTMLInputElement ||
|
||||
target instanceof HTMLTextAreaElement ||
|
||||
target instanceof HTMLSelectElement) &&
|
||||
!isToolIcon(target)
|
||||
(target instanceof HTMLElement && target.dataset.type === "wysiwyg") ||
|
||||
target instanceof HTMLInputElement ||
|
||||
target instanceof HTMLTextAreaElement ||
|
||||
target instanceof HTMLSelectElement
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue