Permalink
Browse files

override to US keyboard type

  • Loading branch information...
youknowone committed Jan 9, 2019
1 parent 23ecef4 commit 1f1fd0bc31c478b08862664f9653b7dcfdc3dde0
Showing with 7 additions and 0 deletions.
  1. +3 −0 CommonInputMethod/CIMInputReceiver.swift
  2. +4 −0 GureumTests/GureumMockObjects.m
@@ -180,6 +180,9 @@ extension CIMInputReceiver { // IMKStateSetting
open func setValue(_ value: Any, forTag tag: Int, client sender: Any, controller: CIMInputController) {
dlog(DEBUG_LOGGING, "LOGGING::EVENT::CHANGE-%lu-%@", tag, value as? String ?? "(nonstring)")
dlog(DEBUG_INPUTCONTROLLER, "** CIMInputController -setValue:forTag:client: with value: %@ / tag: %lx / client: %@", value as? String ?? "(nonstring)", tag, String(describing: controller.client as AnyObject))
if let sender = sender as? IMKTextInput {
sender.overrideKeyboard(withKeyboardNamed: "com.apple.keylayout.US")
}
switch tag {
case kTextServiceInputModePropertyTag:
guard let value = value as? String else {
@@ -40,6 +40,10 @@ - (void)setMarkedText:(id)string selectionRange:(NSRange)selectionRange replacem
[self setMarkedText:string selectedRange:selectionRange replacementRange:replacementRange];
}

- (void)overrideKeyboardWithKeyboardNamed:(NSString *)keyboardUniqueName {
// do nothing
}

@end


0 comments on commit 1f1fd0b

Please sign in to comment.