Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py
diff options
context:
space:
mode:
authorManuel 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)
commit8c9130e7533e41d637a7bc1cc70307e8bf945808 (patch)
tree11b261d9136c801313b65d2f2b6f959ff7ec8b8e /webactivity.py
parent890de598bea714651c2a750f4312a1ab39790e2a (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.py3
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