mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Partially supporting 한글 (hangul, Korean characters) (#2533)
* Partially supporting 한글 (hangul, Korean characters) * Externalized korean shortcuts to separate function * formatting
This commit is contained in:
parent
e3b634a805
commit
fadeb99c99
1 changed files with 21 additions and 0 deletions
|
@ -479,6 +479,26 @@ class Reviewer:
|
|||
# Handlers
|
||||
############################################################
|
||||
|
||||
def korean_shortcuts(
|
||||
self,
|
||||
) -> Sequence[Union[tuple[str, Callable], tuple[Qt.Key, Callable]]]:
|
||||
return [
|
||||
("ㄷ", self.mw.onEditCurrent),
|
||||
("ㅡ", self.showContextMenu),
|
||||
("ㄱ", self.replayAudio),
|
||||
("Ctrl+Alt+ㅜ", self.forget_current_card),
|
||||
# does not work
|
||||
# ("Ctrl+Alt+ㄷ", self.on_create_copy),
|
||||
# does not work
|
||||
# ("Ctrl+Shift+ㅇ", self.on_set_due),
|
||||
("ㅍ", self.onReplayRecorded),
|
||||
("Shift+ㅍ", self.onRecordVoice),
|
||||
("ㅐ", self.onOptions),
|
||||
("ㅑ", self.on_card_info),
|
||||
("Ctrl+Alt+ㅑ", self.on_previous_card_info),
|
||||
("ㅕ", self.mw.undo),
|
||||
]
|
||||
|
||||
def _shortcutKeys(
|
||||
self,
|
||||
) -> Sequence[Union[tuple[str, Callable], tuple[Qt.Key, Callable]]]:
|
||||
|
@ -517,6 +537,7 @@ class Reviewer:
|
|||
("5", self.on_pause_audio),
|
||||
("6", self.on_seek_backward),
|
||||
("7", self.on_seek_forward),
|
||||
*self.korean_shortcuts(),
|
||||
]
|
||||
|
||||
def on_pause_audio(self) -> None:
|
||||
|
|
Loading…
Reference in a new issue