mirror of
https://github.com/1j01/textual-paint.git
synced 2024-11-28 01:34:42 +03:00
Fix double-acting arrow keys with dialog open
This commit is contained in:
parent
b0e478cae0
commit
0a715fff5d
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user