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
1 changed files with 3 additions and 0 deletions

View File

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