Merge branch 'main-dev' into dev-contextMenu
This commit is contained in:
@@ -191,12 +191,9 @@ const KeyPressListener: React.FC = () => {
|
||||
};
|
||||
|
||||
const handleKeyPress = (event: KeyboardEvent) => {
|
||||
if (isTextInput(document.activeElement)) return;
|
||||
|
||||
const keyCombination = detectModifierKeys(event);
|
||||
|
||||
if (isTextInput(document.activeElement) && keyCombination !== "ESCAPE")
|
||||
return;
|
||||
if (isTextInput(document.activeElement) && keyCombination !== "ESCAPE") return;
|
||||
|
||||
if (keyCombination === "ESCAPE") {
|
||||
setWalkMode(false);
|
||||
|
||||
Reference in New Issue
Block a user