Repo // Typo fix: LatinKeyboardMappings.

This commit is contained in:
ShikiSuen 2023-05-27 21:15:32 +08:00
parent 08f56c1009
commit 6ab57f5165
3 changed files with 3 additions and 3 deletions

View File

@ -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 }

View File

@ -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"

View File

@ -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