we can use the old undo shortcut on 5.11

webviews no longer propagate the captured shortcut
This commit is contained in:
Damien Elmes 2018-10-23 18:40:16 +10:00
parent 68a398f8d6
commit 098434ff38
4 changed files with 6 additions and 2 deletions

View File

@ -417,6 +417,8 @@ class Browser(QMainWindow):
f.filter.clicked.connect(self.onFilterButton)
# edit
f.actionUndo.triggered.connect(self.mw.onUndo)
if qtminor < 11:
f.actionUndo.setShortcut(QKeySequence(_("Ctrl+Alt+Z")))
f.actionInvertSelection.triggered.connect(self.invertSelection)
f.actionSelectNotes.triggered.connect(self.selectNotes)
if not isMac:

View File

@ -890,6 +890,8 @@ title="%s" %s>%s</button>''' % (
m.actionPreferences.triggered.connect(self.onPrefs)
m.actionAbout.triggered.connect(self.onAbout)
m.actionUndo.triggered.connect(self.onUndo)
if qtminor < 11:
m.actionUndo.setShortcut(QKeySequence(_("Ctrl+Alt+Z")))
m.actionFullDatabaseCheck.triggered.connect(self.onCheckDB)
m.actionCheckMediaDatabase.triggered.connect(self.onCheckMediaDB)
m.actionDocumentation.triggered.connect(self.onDocumentation)

View File

@ -341,7 +341,7 @@
<string>&amp;Undo</string>
</property>
<property name="shortcut">
<string>Ctrl+Alt+Z</string>
<string>Ctrl+Z</string>
</property>
</action>
<action name="actionInvertSelection">

View File

@ -134,7 +134,7 @@
<string>&amp;Undo</string>
</property>
<property name="shortcut">
<string>Ctrl+Alt+Z</string>
<string>Ctrl+Z</string>
</property>
</action>
<action name="actionCheckMediaDatabase">