aapomm / running-vim

Javascript game to help people practice vim navigation
2 stars 3 forks source link

Remove focus from .cmd-field when length == 0 #6

Closed chuckoy closed 8 years ago

chuckoy commented 8 years ago

It works by detecting the keyup event from the Backspace and Delete keys. It checks the length of .cmd-field and if it is 0, removes focus from the input field (similar to Vim behaviour).

Hopefully this resolves issue #1

Opened a new pull request to merge from a distinct branch.