##// END OF EJS Templates
add keyboard accelerators to Kernel menu
Paul Ivanov -
Show More
@@ -536,14 +536,14 b' class MainWindow(QtGui.QMainWindow):'
536
536
537 ctrl = "Meta" if sys.platform == 'darwin' else "Ctrl"
537 ctrl = "Meta" if sys.platform == 'darwin' else "Ctrl"
538
538
539 self.interrupt_kernel_action = QtGui.QAction("Interrupt current Kernel",
539 self.interrupt_kernel_action = QtGui.QAction("&Interrupt current Kernel",
540 self,
540 self,
541 triggered=self.interrupt_kernel_active_frontend,
541 triggered=self.interrupt_kernel_active_frontend,
542 shortcut=ctrl+"+C",
542 shortcut=ctrl+"+C",
543 )
543 )
544 self.add_menu_action(self.kernel_menu, self.interrupt_kernel_action)
544 self.add_menu_action(self.kernel_menu, self.interrupt_kernel_action)
545
545
546 self.restart_kernel_action = QtGui.QAction("Restart current Kernel",
546 self.restart_kernel_action = QtGui.QAction("&Restart current Kernel",
547 self,
547 self,
548 triggered=self.restart_kernel_active_frontend,
548 triggered=self.restart_kernel_active_frontend,
549 shortcut=ctrl+"+.",
549 shortcut=ctrl+"+.",
@@ -552,7 +552,7 b' class MainWindow(QtGui.QMainWindow):'
552
552
553 self.kernel_menu.addSeparator()
553 self.kernel_menu.addSeparator()
554
554
555 self.confirm_restart_kernel_action = QtGui.QAction("Confirm kernel restart",
555 self.confirm_restart_kernel_action = QtGui.QAction("&Confirm kernel restart",
556 self,
556 self,
557 checkable=True,
557 checkable=True,
558 checked=self.active_frontend.confirm_restart,
558 checked=self.active_frontend.confirm_restart,
General Comments 0
You need to be logged in to leave comments. Login now