##// 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 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 540 self,
541 541 triggered=self.interrupt_kernel_active_frontend,
542 542 shortcut=ctrl+"+C",
543 543 )
544 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 547 self,
548 548 triggered=self.restart_kernel_active_frontend,
549 549 shortcut=ctrl+"+.",
@@ -552,7 +552,7 b' class MainWindow(QtGui.QMainWindow):'
552 552
553 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 556 self,
557 557 checkable=True,
558 558 checked=self.active_frontend.confirm_restart,
General Comments 0
You need to be logged in to leave comments. Login now