From 873ad31a8f4cbad22d83d00ab11f819b7bf19b5a Mon Sep 17 00:00:00 2001 From: Shiki Okasaka Date: Sat, 22 Oct 2022 18:45:49 +0900 Subject: [PATCH] Remove redundant code src/window.py --- src/window.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/window.py b/src/window.py index 1822965..fa3524b 100644 --- a/src/window.py +++ b/src/window.py @@ -332,10 +332,6 @@ def on_key_press_event(self, wid, event): self.replace_to_text = self.replace_to.get_text() self.textview.grab_focus() return True - elif self.ruby_entry.is_focus(): - if event.keyval == Gdk.KEY_Escape: - self.textview.grab_focus() - return True return False def on_mark_set(self, buffer, where, mark):