mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 659012 - 'Select Input Method' context menu when long tapping on a input type=submit button [r=wesj]
This commit is contained in:
parent
5dd4d3e29b
commit
089fe5f720
@ -992,7 +992,7 @@ ContextHandler.registerType("link-shareable", function(aState, aElement) {
|
||||
});
|
||||
|
||||
ContextHandler.registerType("input-text", function(aState, aElement) {
|
||||
return aElement instanceof Ci.nsIDOMHTMLInputElement;
|
||||
return (aElement instanceof Ci.nsIDOMHTMLInputElement && aElement.mozIsTextField(false)) || aElement instanceof Ci.nsIDOMHTMLTextAreaElement;
|
||||
});
|
||||
|
||||
["image", "video"].forEach(function(aType) {
|
||||
|
Loading…
Reference in New Issue
Block a user