##// END OF EJS Templates
print shortcut -> ctrl+shift+P if there is a collision with ctrl+P
MinRK -
Show More
@@ -170,7 +170,12 b' class ConsoleWidget(Configurable, QtGui.QWidget):'
170 # Configure actions.
170 # Configure actions.
171 action = QtGui.QAction('Print', None)
171 action = QtGui.QAction('Print', None)
172 action.setEnabled(True)
172 action.setEnabled(True)
173 action.setShortcut(QtGui.QKeySequence.Print)
173 printkey = QtGui.QKeySequence(QtGui.QKeySequence.Print)
174 if printkey.matches("Ctrl+P") and sys.platform != 'darwin':
175 # only override if there is a collision
176 # Qt ctrl = cmd on OSX, so the match gets a false positive on darwin
177 printkey = "Ctrl+Shift+P"
178 action.setShortcut(printkey)
174 action.triggered.connect(self.print_)
179 action.triggered.connect(self.print_)
175 self.addAction(action)
180 self.addAction(action)
176 self._print_action = action
181 self._print_action = action
General Comments 0
You need to be logged in to leave comments. Login now