mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1125516 - Ensure Selection closed at start of attachCaret, r=wesj
This commit is contained in:
parent
8c154cc63f
commit
966ef984e3
@ -753,6 +753,9 @@ var SelectionHandler = {
|
||||
* @param aX, aY tap location in client coordinates.
|
||||
*/
|
||||
attachCaret: function sh_attachCaret(aElement) {
|
||||
// Clear out any existing active selection
|
||||
this._closeSelection();
|
||||
|
||||
// Ensure it isn't disabled, isn't handled by Android native dialog, and is editable text element
|
||||
if (aElement.disabled || InputWidgetHelper.hasInputWidget(aElement) || !this.isElementEditableText(aElement)) {
|
||||
return this.ATTACH_ERROR_INCOMPATIBLE;
|
||||
|
Loading…
Reference in New Issue
Block a user