Skip to content

Commit

Permalink
Merge branch 'smblott-github-flash-blur'
Browse files Browse the repository at this point in the history
  • Loading branch information
smblott-github committed Oct 26, 2014
2 parents d222439 + 8022ad1 commit 2c7bebb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions content_scripts/vimium_frontend.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,10 @@ onKeydown = (event) ->
keyChar = "<" + keyChar + ">"

if (isInsertMode() && KeyboardUtils.isEscape(event))
# Note that we can't programmatically blur out of Flash embeds from Javascript.
if (!isEmbed(event.srcElement))
if isEditable(event.srcElement) or isEmbed(event.srcElement)
# Remove focus so the user can't just get himself back into insert mode by typing in the same input
# box.
if (isEditable(event.srcElement))
event.srcElement.blur()
event.srcElement.blur()
exitInsertMode()
DomUtils.suppressEvent event
handledKeydownEvents.push event
Expand Down

0 comments on commit 2c7bebb

Please sign in to comment.