Skip to content

Commit

Permalink
Repair broken blur handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
gggritso committed Jan 14, 2017
1 parent 6484b48 commit c00a09e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>Author</key>
<string>George Gritsouk</string>
<key>Builder Version</key>
<string>12602.4.3</string>
<string>12602.4.8</string>
<key>CFBundleDisplayName</key>
<string>Vimmy</string>
<key>CFBundleIdentifier</key>
Expand Down
10 changes: 5 additions & 5 deletions src/vimmy2.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,18 @@

if ( URL_IS_BLACKLISTED ) return;

var
key = getKeyNameFromEvent( event ),
$elements;

if ( elementCapturesKeys( document.activeElement ) ) {
if ( key === 'esc' ) {
return $body.focus();
event.target.blur();
} else {
return;
}
}

var
key = getKeyNameFromEvent( event ),
$elements;

if ( MODE === 'command' ) {

if ( key.isIn([ 'f', 'shift-f' ]) ) {
Expand Down

0 comments on commit c00a09e

Please sign in to comment.