Skip to content

Commit

Permalink
[bug 846] 846-mouseless-keyboard-url-open-fails-to-extract-text-and-c…
Browse files Browse the repository at this point in the history
…lear-search-between-commands #846

- using widget.get_toplevel().get_focussed_terminal() to get current term
- added event_type for tab-change emit as per #835
  • Loading branch information
vssdeo committed Oct 20, 2023
1 parent 8f33798 commit 159ed2b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions terminatorlib/plugins/mousefree_url_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,12 @@ def get_selected_url(self):
dbg("selected URL (%s %s)" % (self.matches_ptr, "not found"))
return None

def on_focus_in(self, widget, event):
def on_focus_in(self, widget, event, event_type = None):
dbg("focus-in clear url search buffer widget: %s" % widget)
self.cur_term = widget
self.vte = widget.get_vte()

self.cur_term = widget.get_toplevel().get_focussed_terminal()
self.vte = self.cur_term.get_vte()

self.clear_search()

def on_keypress(self, widget, event):
Expand Down

0 comments on commit 159ed2b

Please sign in to comment.