Fix double-acting arrow keys with dialog open

This commit is contained in:
Isaiah Odhner 2024-11-04 00:58:18 -05:00
parent b0e478cae0
commit 0a715fff5d
2 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed errors when interacting with the command palette (opened by clicking the paint icon in the top left).
- Fixed double-acting arrow keys. Before it was moving between buttons of a dialog while also moving the selection on the canvas.
## [0.4.0] - 2024-01-11

View File

@ -2989,6 +2989,10 @@ Columns: {len(self.palette) // 2}
# (NoMatches: No nodes match <DOMQuery query='ToolsBox'>)
return
if self.focused is not None:
# Avoid double-acting arrow keys when dialogs are open.
return
key = event.key
shift = key.startswith("shift+")
if shift: