Fixed code view expansion issues; fixed pre/post code view key mappings not sinking Gtk signals properly

This commit is contained in:
2026-01-12 00:07:44 -06:00
parent 04e0c3caf6
commit f8d73ad74a
2 changed files with 10 additions and 9 deletions

View File

@@ -88,7 +88,10 @@ class SourceViewsController(ControllerBase, list):
self.active_view.command.exec("update_info_bar")
def _key_press_event(self, view, eve):
command = self.key_mapper._key_press_event(eve)
command = self.key_mapper._key_press_event(eve)
is_future = self.key_mapper._key_release_event(eve)
if is_future: return True
if not command: return False
view.command.exec(command)
@@ -97,6 +100,9 @@ class SourceViewsController(ControllerBase, list):
def _key_release_event(self, view, eve):
command = self.key_mapper._key_release_event(eve)
is_past = self.key_mapper._key_press_event(eve)
if is_past: return True
if not command: return False
view.command.exec(command)