mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 00:06:06 +08:00
parent
6697372c92
commit
60fad2822c
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue