diff options
author | Manuel QuiƱones <manuq@laptop.org> | 2013-09-05 14:02:03 (GMT) |
---|---|---|
committer | Manuel QuiƱones <manuq@laptop.org> | 2013-09-05 14:03:53 (GMT) |
commit | 8c9130e7533e41d637a7bc1cc70307e8bf945808 (patch) | |
tree | 11b261d9136c801313b65d2f2b6f959ff7ec8b8e /webactivity.py | |
parent | 890de598bea714651c2a750f4312a1ab39790e2a (diff) |
Add shortcut to close the current tab
And improve the code of the tab close
Fixes #4590
Diffstat (limited to 'webactivity.py')
-rw-r--r-- | webactivity.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webactivity.py b/webactivity.py index 3c0d337..3232f9d 100644 --- a/webactivity.py +++ b/webactivity.py @@ -505,6 +505,9 @@ class WebActivity(activity.Activity): browser.reload() elif Gdk.keyval_name(event.keyval) == "t": self._tabbed_view.add_tab() + elif key_name == 'w': + _logger.debug('keyboard: close tab') + self._tabbed_view.close_tab() else: return False |