mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
macOS: Fix some keyboard shortcuts not working. Fixes #1698545 [Keyboard shortucts not working in Calibre 3.0](https://bugs.launchpad.net/calibre/+bug/1698545)
Apparently in Qt 5.6 global menubar actions also conflict with Qt shortcuts. So only display them and dont actually clone them.
This commit is contained in:
parent
90b16ef410
commit
c7a98a0efc
@ -313,7 +313,9 @@ if isosx:
|
|||||||
self.setChecked(self.clone.isChecked())
|
self.setChecked(self.clone.isChecked())
|
||||||
self.setIcon(self.clone.icon())
|
self.setIcon(self.clone.icon())
|
||||||
if self.clone_shortcuts:
|
if self.clone_shortcuts:
|
||||||
self.setShortcuts(self.clone.shortcuts())
|
sc = self.clone.shortcut()
|
||||||
|
if sc and not sc.isEmpty():
|
||||||
|
self.setText(self.text() + '\t' + sc.toString(sc.NativeText))
|
||||||
if self.clone.menu() is None:
|
if self.clone.menu() is None:
|
||||||
if not self.is_top_level:
|
if not self.is_top_level:
|
||||||
self.setMenu(None)
|
self.setMenu(None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user