mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-10-26 19:01:44 -04:00
Browser: allow ctrl-k to clear the URL edit field
This commit is contained in:
parent
cf25ed8a64
commit
7de0fa9a8f
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue