mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: non-letter shortcuts being swallowed by color picker (#5316)
This commit is contained in:
parent
5feacd9a3b
commit
fd48c2cf79
2 changed files with 18 additions and 8 deletions
|
@ -1694,7 +1694,9 @@ class App extends React.Component<AppProps, AppState> {
|
|||
}
|
||||
|
||||
if (
|
||||
(isWritableElement(event.target) && event.key !== KEYS.ESCAPE) ||
|
||||
(isWritableElement(event.target) &&
|
||||
!event[KEYS.CTRL_OR_CMD] &&
|
||||
event.key !== KEYS.ESCAPE) ||
|
||||
// case: using arrows to move between buttons
|
||||
(isArrowKey(event.key) && isInputLike(event.target))
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue