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:02:29 (GMT) |
commit | 7b42a2eb587fd921b68095e2c86931dc8ca10d57 (patch) | |
tree | b020e3431bbb271f5af8a7ab27afa775b98bf09b /webactivity.py | |
parent | 31b7499ff74a2fb24bdbff49cd3bae472ed637e3 (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 c74f54a..43267e2 100644 --- a/webactivity.py +++ b/webactivity.py @@ -539,6 +539,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 |