Skip to content

Commit

Permalink
Merge pull request #903 from f3rn4nd0-c354r/master
Browse files Browse the repository at this point in the history
Add reverse search keyboard binding
  • Loading branch information
mattrose authored Jun 23, 2024
2 parents e42d8b6 + 6e1f014 commit b3d5030
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 b3d5030

Please sign in to comment.