118
118
(defun meow-keypad-quit ()
119
119
" Quit keypad state."
120
120
(interactive )
121
+ (setq this-command last-command)
121
122
(when meow-keypad-message
122
123
(message " KEYPAD exit " ))
123
124
(meow--keypad-quit))
@@ -330,6 +331,7 @@ Returning DEF will result in a generated title."
330
331
(defun meow-keypad-undo ()
331
332
" Pop the last input."
332
333
(interactive )
334
+ (setq this-command last-command)
333
335
(cond
334
336
(meow--use-both
335
337
(setq meow--use-both nil ))
@@ -394,6 +396,7 @@ try replacing the last modifier and try again."
394
396
(defun meow-keypad-self-insert ()
395
397
" Default command when keypad state is enabled."
396
398
(interactive )
399
+ (setq this-command last-command)
397
400
(when-let ((e (meow--event-key last-input-event))
398
401
(key (meow--parse-input-event e)))
399
402
(let ((has-sub-meta (meow--keypad-has-sub-meta-keymap-p)))
@@ -446,6 +449,7 @@ try replacing the last modifier and try again."
446
449
(defun meow-keypad ()
447
450
" Enter keypad state."
448
451
(interactive )
452
+ (setq this-command last-command)
449
453
(setq meow--keypad-previous-state (meow--current-state))
450
454
(meow--switch-state 'keypad )
451
455
(setq overriding-local-map meow-keypad-state-keymap
@@ -455,6 +459,7 @@ try replacing the last modifier and try again."
455
459
(defun meow-keypad-start ()
456
460
" Enter keypad state with current input as initial key sequences."
457
461
(interactive )
462
+ (setq this-command last-command)
458
463
(setq meow--keypad-previous-state (meow--current-state))
459
464
(meow--switch-state 'keypad )
460
465
(setq overriding-local-map meow-keypad-state-keymap
@@ -476,6 +481,7 @@ INPUT is a string, stands for initial keys."
476
481
(defun meow-keypad-describe-key ()
477
482
" Describe key via KEYPAD input."
478
483
(interactive )
484
+ (setq this-command last-command)
479
485
(setq overriding-local-map meow-keypad-state-keymap
480
486
meow--keypad-help t
481
487
meow--keypad-previous-state (meow--current-state))
0 commit comments