fix(contextualmenu): Disable for non-selectable inputs

Fixes #664
This commit is contained in:
Ben Gotow 2015-12-11 11:55:31 -08:00
parent 6697372c92
commit 60fad2822c

View file

@ -164,6 +164,8 @@ class WindowEventHandler
openContextualMenuForInput: (event) ->
event.preventDefault()
return unless event.target.type in ['text', 'password', 'email', 'number', 'range', 'search', 'tel', 'url']
hasSelectedText = event.target.selectionStart isnt event.target.selectionEnd
remote = require('remote')