;; to init.
((input-focus-move) (shift init))
;; When an input focus is out or in, keep the current preedit.
- ((input-focus-out) (undo 1))
- ((input-focus-in) (undo 1))))
+ ((input-focus-out) (set KK @@) (sub KK 1) (undo KK))
+ ((input-focus-in) (set KK @@) (sub KK 1) (undo KK))))
(include (t nil cjk-util) map)
(nil (hide) (shift init)))
(select
+ (t (set K @@) (sub K 1))
;; When a number is typed, select the corresponding canidate,
;; produce it, and shift to "init" state.
(focus-change)
(choose (hide) (shift init))
(change-candidate)
- (backspace (undo))
+ (backspace (undo K))
;; When Return is typed, fix the current preedit.
(return (shift init))
;; When anything else is typed, produce the current candidate,
;; to init.
((input-focus-move) (shift init))
;; When an input focus is out or in, keep the current preedit.
- ((input-focus-out) (undo 1))
- ((input-focus-in) (undo 1))))
+ ((input-focus-out) (set KK @@) (sub KK 1) (undo KK))
+ ((input-focus-in) (set KK @@) (sub KK 1) (undo KK))))
(include (t nil cjk-util) map)
(nil (hide) (shift init)))
(select
+ (t (set K @@) (sub K 1))
;; When a number is typed, select the corresponding canidate,
;; produce it, and shift to "init" state.
(focus-change)