mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-06-05 06:01:19 +00:00
Browser: allow ctrl-k to clear the URL edit field
This commit is contained in:
@@ -1811,5 +1811,8 @@ class UrlEdit(urwid.Edit):
|
||||
def keypress(self, size, key):
|
||||
if key == "enter":
|
||||
self.confirmed(self)
|
||||
elif key == "ctrl k":
|
||||
self.set_edit_text("")
|
||||
self.set_edit_pos(0)
|
||||
else:
|
||||
return super(UrlEdit, self).keypress(size, key)
|
||||
|
||||
Reference in New Issue
Block a user