KeyHandler // Enable Ctrl+Alt+Fwd/Bwd for cursor handling.

This commit is contained in:
ShikiSuen 2022-07-12 21:22:57 +08:00
parent f47824292e
commit 0f38a5ed90
1 changed files with 6 additions and 0 deletions

View File

@ -662,6 +662,9 @@ extension KeyHandler {
stateCallback(state) stateCallback(state)
} }
} else if input.isOptionHold { } else if input.isOptionHold {
if input.isControlHold {
return handleEnd(state: state, stateCallback: stateCallback, errorCallback: errorCallback)
}
// //
if !compositor.jumpCursorBySpan(to: .front) { if !compositor.jumpCursorBySpan(to: .front) {
IME.prtDebugIntel("33C3B580") IME.prtDebugIntel("33C3B580")
@ -727,6 +730,9 @@ extension KeyHandler {
stateCallback(state) stateCallback(state)
} }
} else if input.isOptionHold { } else if input.isOptionHold {
if input.isControlHold {
return handleHome(state: state, stateCallback: stateCallback, errorCallback: errorCallback)
}
// //
if !compositor.jumpCursorBySpan(to: .rear) { if !compositor.jumpCursorBySpan(to: .rear) {
IME.prtDebugIntel("8D50DD9E") IME.prtDebugIntel("8D50DD9E")