1

updating shortcuts

This commit is contained in:
Alex Yatskov 2013-02-04 19:15:10 -08:00
parent e6149fa40d
commit 5d02d7d728
6 changed files with 7 additions and 6 deletions

View File

@ -243,7 +243,7 @@
<string>Quit Yomichan</string> <string>Quit Yomichan</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+Q</string> <string>Esc</string>
</property> </property>
<property name="iconVisibleInMenu"> <property name="iconVisibleInMenu">
<bool>true</bool> <bool>true</bool>

View File

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'ui/about.ui' # Form implementation generated from reading ui file 'ui/about.ui'
# #
# Created: Tue Dec 25 13:23:04 2012 # Created: Mon Feb 4 19:14:32 2013
# by: PyQt4 UI code generator 4.9.6 # by: PyQt4 UI code generator 4.9.6
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!

View File

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'ui/preferences.ui' # Form implementation generated from reading ui file 'ui/preferences.ui'
# #
# Created: Tue Dec 25 13:23:04 2012 # Created: Mon Feb 4 19:14:33 2013
# by: PyQt4 UI code generator 4.9.6 # by: PyQt4 UI code generator 4.9.6
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!

View File

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'ui/reader.ui' # Form implementation generated from reading ui file 'ui/reader.ui'
# #
# Created: Tue Dec 25 13:23:04 2012 # Created: Mon Feb 4 19:14:33 2013
# by: PyQt4 UI code generator 4.9.6 # by: PyQt4 UI code generator 4.9.6
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!
@ -260,7 +260,7 @@ class Ui_MainWindowReader(object):
self.actionOpen.setShortcut(_translate("MainWindowReader", "Ctrl+O", None)) self.actionOpen.setShortcut(_translate("MainWindowReader", "Ctrl+O", None))
self.actionQuit.setText(_translate("MainWindowReader", "&Quit", None)) self.actionQuit.setText(_translate("MainWindowReader", "&Quit", None))
self.actionQuit.setToolTip(_translate("MainWindowReader", "Quit Yomichan", None)) self.actionQuit.setToolTip(_translate("MainWindowReader", "Quit Yomichan", None))
self.actionQuit.setShortcut(_translate("MainWindowReader", "Ctrl+Q", None)) self.actionQuit.setShortcut(_translate("MainWindowReader", "Esc", None))
self.actionPreferences.setText(_translate("MainWindowReader", "&Preferences...", None)) self.actionPreferences.setText(_translate("MainWindowReader", "&Preferences...", None))
self.actionPreferences.setToolTip(_translate("MainWindowReader", "Edit preferences", None)) self.actionPreferences.setToolTip(_translate("MainWindowReader", "Edit preferences", None))
self.actionAbout.setText(_translate("MainWindowReader", "&About...", None)) self.actionAbout.setText(_translate("MainWindowReader", "&About...", None))

View File

@ -2,7 +2,7 @@
# Resource object code # Resource object code
# #
# Created: Tue Dec 25 13:23:04 2012 # Created: Mon Feb 4 19:14:33 2013
# by: The Resource Compiler for PyQt (Qt v4.8.4) # by: The Resource Compiler for PyQt (Qt v4.8.4)
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!

View File

@ -46,6 +46,7 @@ class YomichanPlugin(Yomichan):
action = QtGui.QAction(QtGui.QIcon(':/img/img/icon_logo_32.png'), '&Yomichan...', self.parent) action = QtGui.QAction(QtGui.QIcon(':/img/img/icon_logo_32.png'), '&Yomichan...', self.parent)
action.setIconVisibleInMenu(True) action.setIconVisibleInMenu(True)
action.setShortcut('Ctrl+Y')
action.triggered.connect(self.onShowRequest) action.triggered.connect(self.onShowRequest)
self.anki.addUiAction(action) self.anki.addUiAction(action)