Skip to content

Commit

Permalink
Add reverse search keyboard binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando César committed Apr 19, 2024
1 parent bad3bda commit 895ea4e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions terminatorlib/searchbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,10 @@ def search_keypress(self, widget, event):
key = Gdk.keyval_name(event.keyval)
if key == 'Escape':
self.end_search()
else:
self.prev.set_sensitive(False)
self.next.set_sensitive(False)
elif (event.state & Gdk.ModifierType.SHIFT_MASK)\
and (event.keyval == Gdk.KEY_Return or event.keyval == Gdk.KEY_KP_Enter):
self.prev_search(None)
return True

def start_search(self):
"""Show ourselves"""
Expand Down

0 comments on commit 895ea4e

Please sign in to comment.