KeyHandler // Use (Shift+)Tab Key to handle candidates.
This commit is contained in:
parent
d56e5c356f
commit
7d2d20e61f
|
@ -1024,6 +1024,20 @@ static NSString *const kGraphVizOutputfile = @"/tmp/vChewing-visualization.dot";
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ([input isTab]) {
|
||||||
|
BOOL updated =
|
||||||
|
Preferences.specifyTabKeyBehavior?
|
||||||
|
([input isShiftHold] ? [gCurrentCandidateController showPreviousPage] : [gCurrentCandidateController showNextPage])
|
||||||
|
:
|
||||||
|
([input isShiftHold] ? [gCurrentCandidateController highlightPreviousCandidate] : [gCurrentCandidateController highlightNextCandidate])
|
||||||
|
;
|
||||||
|
if (!updated) {
|
||||||
|
[self errorCallbackConsolePrint:@"9B691919"];
|
||||||
|
errorCallback();
|
||||||
|
}
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
|
||||||
if ([input isSpace] || [input isPageDown] || input.emacsKey == vChewingEmacsKeyNextPage) {
|
if ([input isSpace] || [input isPageDown] || input.emacsKey == vChewingEmacsKeyNextPage) {
|
||||||
BOOL updated = [gCurrentCandidateController showNextPage];
|
BOOL updated = [gCurrentCandidateController showNextPage];
|
||||||
if (!updated) {
|
if (!updated) {
|
||||||
|
|
Loading…
Reference in New Issue