mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
fix shortcut keys in clayout
This commit is contained in:
parent
12b9a7e368
commit
300fba156e
1 changed files with 3 additions and 9 deletions
|
@ -160,19 +160,13 @@ class CardLayout(QDialog):
|
||||||
self.tform.back_button.setToolTip(shortcut("Ctrl+2"))
|
self.tform.back_button.setToolTip(shortcut("Ctrl+2"))
|
||||||
self.tform.style_button.setToolTip(shortcut("Ctrl+3"))
|
self.tform.style_button.setToolTip(shortcut("Ctrl+3"))
|
||||||
QShortcut( # type: ignore
|
QShortcut( # type: ignore
|
||||||
QKeySequence("Ctrl+1"),
|
QKeySequence("Ctrl+1"), self, activated=self.tform.front_button.click,
|
||||||
self,
|
|
||||||
activated=lambda: self.tform.front_button.setChecked(True),
|
|
||||||
)
|
)
|
||||||
QShortcut( # type: ignore
|
QShortcut( # type: ignore
|
||||||
QKeySequence("Ctrl+2"),
|
QKeySequence("Ctrl+2"), self, activated=self.tform.back_button.click,
|
||||||
self,
|
|
||||||
activated=lambda: self.tform.back_button.setChecked(True),
|
|
||||||
)
|
)
|
||||||
QShortcut( # type: ignore
|
QShortcut( # type: ignore
|
||||||
QKeySequence("Ctrl+3"),
|
QKeySequence("Ctrl+3"), self, activated=self.tform.style_button.click,
|
||||||
self,
|
|
||||||
activated=lambda: self.tform.style_button.setChecked(True),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Main area setup
|
# Main area setup
|
||||||
|
|
Loading…
Reference in a new issue