Compare commits

...

2 Commits

Author SHA1 Message Date
zsviczian
4b1c7fd20c
lint 2023-11-27 19:39:16 +01:00
zsviczian
606c647e3d
drop onKeyDown if shift is down and element is resizing 2023-11-27 19:19:43 +01:00

View File

@ -3543,8 +3543,11 @@ class App extends React.Component<AppProps, AppState> {
// Input handling // Input handling
private onKeyDown = withBatchedUpdates( private onKeyDown = withBatchedUpdates(
(event: React.KeyboardEvent | KeyboardEvent) => { (event: React.KeyboardEvent | KeyboardEvent) => {
if (this.state.resizingElement && event.shiftKey) {
event.stopPropagation();
return;
}
// normalize `event.key` when CapsLock is pressed #2372 // normalize `event.key` when CapsLock is pressed #2372
if ( if (
"Proxy" in window && "Proxy" in window &&
((!event.shiftKey && /^[A-Z]$/.test(event.key)) || ((!event.shiftKey && /^[A-Z]$/.test(event.key)) ||