Prevent scrolling view when pressing Esc to hide cursor

This commit is contained in:
Isaiah Odhner 2024-11-10 18:01:44 -05:00
parent fcc0329dae
commit 25ecfa61f9

View File

@ -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)