Status: Accepted
Owner: noel.kalman
Labels: Type-Defect Priority-Medium

New issue 291 by noel.kalman: Pending key presses are not reliably shown
http://code.google.com/p/yi-editor/issues/detail?id=291

In either the emacs or vim keymap, the list of pending key presses (the  
keys shown in the status
line, giving feedback on your typing while you haven't yet completed a  
command sequence) is
unreliable. Immediately after startup, or after the “unrecognized input”  
message has been
shown, one event is missing. (Easily observable with the vim keymap by  
pressing the g and \ keys
in various combinations.)

As far as I can see, this is due to Yi.Core.dispatch checking for “null  
userActions”. The idea here
is probably that the pending keys should be forgotten whenever the keymap  
does something
else to react to the user input. The test is disturbed, however, by the  
keymap process doing
some resetting actions whenever it starts from the top.

I'm not sure about the fix. Maybe the keymap process should expose some  
“final state”,
indicating that it has reacted to user input (and that the pending list  
should be emptied). Note
that a final state would be orthogonal to a dead end.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to