##// END OF EJS Templates
Fix tab and menubar shortcuts
MinRK -
Show More
@@ -447,7 +447,7 b' class MainWindow(QtGui.QMainWindow):'
447 # disable on OSX, where there is always a menu bar
447 # disable on OSX, where there is always a menu bar
448 self.toggle_menu_bar_act = QtGui.QAction("Toggle &Menu Bar",
448 self.toggle_menu_bar_act = QtGui.QAction("Toggle &Menu Bar",
449 self,
449 self,
450 shortcut="Ctrl+Meta+M",
450 shortcut="Ctrl+Shift+M",
451 statusTip="Toggle visibility of menubar",
451 statusTip="Toggle visibility of menubar",
452 triggered=self.toggle_menu_bar)
452 triggered=self.toggle_menu_bar)
453 self.add_menu_action(self.view_menu, self.toggle_menu_bar_act)
453 self.add_menu_action(self.view_menu, self.toggle_menu_bar_act)
@@ -603,7 +603,7 b' class MainWindow(QtGui.QMainWindow):'
603 self.add_menu_action(self.window_menu, self.maximizeAct)
603 self.add_menu_action(self.window_menu, self.maximizeAct)
604 self.window_menu.addSeparator()
604 self.window_menu.addSeparator()
605
605
606 prev_key = "Ctrl+Shift+Left" if sys.platform == 'darwin' else "Ctrl+PgDown"
606 prev_key = "Ctrl+Shift+Left" if sys.platform == 'darwin' else "Ctrl+PgUp"
607 self.prev_tab_act = QtGui.QAction("Pre&vious Tab",
607 self.prev_tab_act = QtGui.QAction("Pre&vious Tab",
608 self,
608 self,
609 shortcut=prev_key,
609 shortcut=prev_key,
@@ -611,7 +611,7 b' class MainWindow(QtGui.QMainWindow):'
611 triggered=self.prev_tab)
611 triggered=self.prev_tab)
612 self.add_menu_action(self.window_menu, self.prev_tab_act)
612 self.add_menu_action(self.window_menu, self.prev_tab_act)
613
613
614 next_key = "Ctrl+Shift+Right" if sys.platform == 'darwin' else "Ctrl+PgUp"
614 next_key = "Ctrl+Shift+Right" if sys.platform == 'darwin' else "Ctrl+PgDown"
615 self.next_tab_act = QtGui.QAction("Ne&xt Tab",
615 self.next_tab_act = QtGui.QAction("Ne&xt Tab",
616 self,
616 self,
617 shortcut=next_key,
617 shortcut=next_key,
General Comments 0
You need to be logged in to leave comments. Login now