KeyHandler // Always return NO when ↓Shift & +CapsLock.
This commit is contained in:
parent
834eff1067
commit
165703eb1c
|
@ -286,13 +286,9 @@ static NSString *const kGraphVizOutputfile = @"/tmp/vChewing-visualization.dot";
|
||||||
InputStateEmpty *emptyState = [[InputStateEmpty alloc] init];
|
InputStateEmpty *emptyState = [[InputStateEmpty alloc] init];
|
||||||
stateCallback(emptyState);
|
stateCallback(emptyState);
|
||||||
|
|
||||||
// Non-Dynamic Keyboard Layouts Only: When shift is pressed, don't do further processing, since it outputs capital letter anyway.
|
// When shift is pressed, don't do further processing, since it outputs capital letter anyway.
|
||||||
if ((![Preferences.basisKeyboardLayout isEqual: @"com.apple.keylayout.ZhuyinBopomofo"]
|
if ([input isShiftHold]) {
|
||||||
&& ![Preferences.basisKeyboardLayout isEqual: @"com.apple.keylayout.ZhuyinEten"])
|
return NO;
|
||||||
|| [input isCapsLockOn]){
|
|
||||||
if ([input isShiftHold]) {
|
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if ASCII but not printable, don't use insertText:replacementRange: as many apps don't handle non-ASCII char insertions.
|
// if ASCII but not printable, don't use insertText:replacementRange: as many apps don't handle non-ASCII char insertions.
|
||||||
|
|
Loading…
Reference in New Issue