From d31ab17e04bb2d0c7a0b03e654fff590d7a06c3f Mon Sep 17 00:00:00 2001 From: Gary Martin Date: Wed, 19 Aug 2009 11:12:40 +0000 Subject: Added modifier to keyboard shortcuts to allow correct Sugar title input. --- diff --git a/activity.py b/activity.py index 2449a72..0a8eead 100644 --- a/activity.py +++ b/activity.py @@ -28,7 +28,7 @@ class PhysicsActivity(olpcgames.PyGameActivity): self.stop_play_state = True self.stop_play = ToolButton('media-playback-stop') self.stop_play.set_tooltip(_("Stop")) - self.stop_play.set_accelerator(_('space')) + self.stop_play.set_accelerator(_('space')) self.stop_play.connect('clicked', self.stop_play_cb) create_toolbar.insert(self.stop_play, 0) self.stop_play.show() diff --git a/tools.py b/tools.py index a8b2082..4b10d99 100644 --- a/tools.py +++ b/tools.py @@ -60,7 +60,7 @@ class CircleTool(Tool): name = 'Circle' icon = 'circle' toolTip = _("Circle") - toolAccelerator = _("c") + toolAccelerator = _("c") def __init__(self,gameInstance): self.game = gameInstance @@ -98,7 +98,7 @@ class BoxTool(Tool): name = 'Box' icon = 'box' toolTip = _("Box") - toolAccelerator = _("b") + toolAccelerator = _("b") def __init__(self,gameInstance): self.game = gameInstance @@ -134,7 +134,7 @@ class TriangleTool(Tool): name = 'Triangle' icon = 'triangle' toolTip = _("Triangle") - toolAccelerator = _("t") + toolAccelerator = _("t") def __init__(self,gameInstance): self.game = gameInstance @@ -169,7 +169,7 @@ class PolygonTool(Tool): name = 'Polygon' icon = 'polygon' toolTip = _("Polygon") - toolAccelerator = _("p") + toolAccelerator = _("p") def __init__(self,gameInstance): self.game = gameInstance @@ -228,7 +228,7 @@ class MagicPenTool(Tool): name = 'Magicpen' icon = 'magicpen' toolTip = _("Draw") - toolAccelerator = _("d") + toolAccelerator = _("d") def __init__(self,gameInstance): self.game = gameInstance @@ -267,7 +267,7 @@ class GrabTool(Tool): name = 'Grab' icon = 'grab' toolTip = _("Grab") - toolAccelerator = _("g") + toolAccelerator = _("g") def __init__(self,gameInstance): self.game = gameInstance @@ -297,7 +297,7 @@ class JointTool(Tool): name = 'Joint' icon = 'joint' toolTip = _("Joint") - toolAccelerator = "j" + toolAccelerator = "j" def __init__(self,gameInstance): self.game = gameInstance @@ -338,7 +338,7 @@ class PinTool(Tool): name = 'Pin' icon = 'pin' toolTip = _("Pin") - toolAccelerator = _("o") + toolAccelerator = _("o") def __init__(self,gameInstance): self.game = gameInstance @@ -362,7 +362,7 @@ class MotorTool(Tool): name = 'Motor' icon = 'motor' toolTip = _("Motor") - toolAccelerator = _("m") + toolAccelerator = _("m") def __init__(self,gameInstance): self.game = gameInstance @@ -386,7 +386,7 @@ class RollTool(Tool): name = 'Roll' icon = 'roll' toolTip = _("Roll") - toolAccelerator = _("r") + toolAccelerator = _("r") def __init__(self,gameInstance): self.game = gameInstance @@ -414,7 +414,7 @@ class DestroyTool(Tool): name = 'Destroy' icon = 'destroy' toolTip = _("Erase") - toolAccelerator = _("e") + toolAccelerator = _("e") def __init__(self,gameInstance): self.game = gameInstance -- cgit v0.9.1