зеркало из https://github.com/mozilla/gecko-dev.git
Bug 654729 - Weird highlighting when adding text to an existing address, r=dao
This commit is contained in:
Родитель
bcc423bd5b
Коммит
7aefc7645a
|
@ -220,6 +220,17 @@
|
||||||
]]></body>
|
]]></body>
|
||||||
</method>
|
</method>
|
||||||
|
|
||||||
|
<method name="_clearFormatting">
|
||||||
|
<body><![CDATA[
|
||||||
|
if (!this._formattingEnabled)
|
||||||
|
return;
|
||||||
|
|
||||||
|
let controller = this.editor.selectionController;
|
||||||
|
let selection = controller.getSelection(controller.SELECTION_URLSECONDARY);
|
||||||
|
selection.removeAllRanges();
|
||||||
|
]]></body>
|
||||||
|
</method>
|
||||||
|
|
||||||
<method name="handleRevert">
|
<method name="handleRevert">
|
||||||
<body><![CDATA[
|
<body><![CDATA[
|
||||||
var isScrolling = this.popupOpen;
|
var isScrolling = this.popupOpen;
|
||||||
|
@ -645,6 +656,7 @@
|
||||||
|
|
||||||
<handler event="blur"><![CDATA[
|
<handler event="blur"><![CDATA[
|
||||||
this._clearNoActions();
|
this._clearNoActions();
|
||||||
|
this.formatValue();
|
||||||
]]></handler>
|
]]></handler>
|
||||||
|
|
||||||
<handler event="draggesture" phase="capturing"><![CDATA[
|
<handler event="draggesture" phase="capturing"><![CDATA[
|
||||||
|
@ -679,6 +691,7 @@
|
||||||
|
|
||||||
<handler event="focus" phase="capturing"><![CDATA[
|
<handler event="focus" phase="capturing"><![CDATA[
|
||||||
this._hideURLTooltip();
|
this._hideURLTooltip();
|
||||||
|
this._clearFormatting();
|
||||||
]]></handler>
|
]]></handler>
|
||||||
|
|
||||||
<handler event="dragover" phase="capturing" action="this.onDragOver(event, this);"/>
|
<handler event="dragover" phase="capturing" action="this.onDragOver(event, this);"/>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче