[Sugar-devel] [PATCH] replace Keep and Stop accelerators
Martin Dengler
martin at martindengler.com
Tue Aug 11 19:19:10 EDT 2009
This commit replaces the Keep and Stop accelerators from the
Terminal's activity toolbar, since the default accelerators are quite
heavily used keyboard shortcuts: Ctrl-s and Ctrl-q. These old
defaults are replaced with shift-ed equivalents: Ctrl-Shift-s and
Ctrl-Shift-q. This is consistent with how Terminal has modified
versions of commonly-used Sugar shortcuts like Ctrl-Shift-c (copy) and
Ctrl-Shift-v (paste).
---
terminal.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/terminal.py b/terminal.py
index 913652f..0c9b554 100644
--- a/terminal.py
+++ b/terminal.py
@@ -106,6 +106,9 @@ class TerminalActivity(sugar.activity.activity.Activity):
activity_toolbar = toolbox.get_activity_toolbar()
activity_toolbar.share.props.visible = False
activity_toolbar.keep.props.visible = False
+ activity_toolbar.keep.props.accelerator = '<Ctrl><Shift>S'
+
+ activity_toolbar.stop.props.accelerator = '<Ctrl><Shift>Q'
fullscreenbtn = sugar.graphics.toolbutton.ToolButton('view-fullscreen')
fullscreenbtn.set_tooltip(_("Fullscreen"))
--
1.6.0.6
More information about the Sugar-devel
mailing list