mirror of
https://github.com/1j01/textual-paint.git
synced 2024-11-28 01:34:42 +03:00
Prevent scrolling view when pressing Esc to hide cursor
This commit is contained in:
parent
fcc0329dae
commit
25ecfa61f9
@ -3032,6 +3032,10 @@ Columns: {len(self.palette) // 2}
|
||||
# Don't interfere with Ctrl+C, Ctrl+V, etc.
|
||||
# and don't double-handle Ctrl+F (View Bitmap)
|
||||
return
|
||||
if key == "escape":
|
||||
# Don't scroll view to cursor position when pressing escape.
|
||||
# Escape is handled by `cancel` binding, which removes the cursor.
|
||||
return
|
||||
|
||||
if self.has_class("view_bitmap"):
|
||||
self.call_later(self.action_view_bitmap)
|
||||
|
Loading…
Reference in New Issue
Block a user