Repo // Typo fix: LatinKeyboardMappings.
This commit is contained in:
parent
08f56c1009
commit
6ab57f5165
|
@ -311,7 +311,7 @@ public enum EmacsKey {
|
|||
// MARK: - Apple ABC Keyboard Mapping
|
||||
|
||||
public extension NSEvent {
|
||||
func layoutTranslated(to layout: LatinKeyboardMarkings = .qwerty) -> NSEvent {
|
||||
func layoutTranslated(to layout: LatinKeyboardMappings = .qwerty) -> NSEvent {
|
||||
let mapTable = layout.mapTable
|
||||
if type == .flagsChanged { return self }
|
||||
guard modifierFlags == .shift || modifierFlags.isEmpty else { return self }
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public enum LatinKeyboardMarkings: String {
|
||||
public enum LatinKeyboardMappings: String {
|
||||
case qwerty = "com.apple.keylayout.ABC"
|
||||
case qwertyUS = "com.apple.keylayout.US"
|
||||
case azerty = "com.apple.keylayout.ABC-AZERTY"
|
||||
|
|
|
@ -124,7 +124,7 @@ public extension SessionCtl {
|
|||
|
||||
// 在啟用注音排列而非拼音輸入的情況下,強制將當前鍵盤佈局翻譯為美規鍵盤(或指定的其它鍵盤佈局)。
|
||||
if !inputHandler.isComposerUsingPinyin || IMKHelper.isDynamicBasicKeyboardLayoutEnabled {
|
||||
var defaultLayout = LatinKeyboardMarkings(rawValue: PrefMgr.shared.basicKeyboardLayout) ?? .qwerty
|
||||
var defaultLayout = LatinKeyboardMappings(rawValue: PrefMgr.shared.basicKeyboardLayout) ?? .qwerty
|
||||
if let parser = KeyboardParser(rawValue: PrefMgr.shared.keyboardParser) {
|
||||
switch parser {
|
||||
case .ofStandard, .ofIBM, .ofSeigyou, .ofFakeSeigyou, .ofDachen26: defaultLayout = .qwerty
|
||||
|
|
Loading…
Reference in New Issue