Handle popup menu being triggered without a full event, e.g. when the menu keyboard key is pressed

This commit is contained in:
Chris Jones 2010-01-25 12:26:32 +00:00
parent ab02add397
commit 60983e3584

View File

@ -35,6 +35,9 @@ class TerminalPopupMenu(object):
url = terminal.check_for_url(event) url = terminal.check_for_url(event)
button = event.button button = event.button
time = event.time time = event.time
else:
time = 0
button = 3
if url: if url:
if url[1] == terminal.matches['email']: if url[1] == terminal.matches['email']: