From 606c647e3d1866e0d9195d80346867528ba68664 Mon Sep 17 00:00:00 2001 From: zsviczian Date: Mon, 27 Nov 2023 19:19:43 +0100 Subject: [PATCH] drop onKeyDown if shift is down and element is resizing --- src/components/App.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 2c3f7a6ef..2d84ee251 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -3543,8 +3543,11 @@ class App extends React.Component { // Input handling private onKeyDown = withBatchedUpdates( (event: React.KeyboardEvent | KeyboardEvent) => { + if(this.state.resizingElement && event.shiftKey) { + event.stopPropagation(); + return; + } // normalize `event.key` when CapsLock is pressed #2372 - if ( "Proxy" in window && ((!event.shiftKey && /^[A-Z]$/.test(event.key)) ||