From 29f923eb785bf54b8c352ac7a369dbce502b0701 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Fri, 8 Aug 2014 16:10:47 -0500 Subject: [PATCH] Add keyboard shortcuts for toolbar actions --- pyface/ui/qt4/action/action_item.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyface/ui/qt4/action/action_item.py b/pyface/ui/qt4/action/action_item.py index 209f76505..d591d8c70 100644 --- a/pyface/ui/qt4/action/action_item.py +++ b/pyface/ui/qt4/action/action_item.py @@ -274,6 +274,7 @@ def __init__(self, parent, tool_bar, image_cache, item, controller, self.control.setWhatsThis(action.description) self.control.setEnabled(action.enabled) self.control.setVisible(action.visible) + self.control.setShortcut(action.accelerator) if action.style == 'toggle': self.control.setCheckable(True)