1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

Fix focus and move cursor to end in SpeedDial

Focusing #formUrl without reseting its value doesnt moves the cursor to end.

Differential Revision: https://phabricator.kde.org/D11765
This commit is contained in:
Anmol Gautam 2018-03-30 17:32:14 +02:00 committed by David Rosca
parent eb09774455
commit fc6f6cddd2
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -627,7 +627,9 @@ function onEditClick(box) {
$('#fadeOverlay').css({'filter' : 'alpha(opacity=100)'}).fadeIn();
$('#fadeOverlay').click(function() {hideEditBox()});
$('#overlay-edit').click(function(event) { event.stopPropagation(); });
$('#formUrl').focus().val($('#formUrl').val()); // focus and move cursor to end
var temp = $('#formUrl').val();
$('#formUrl').focus().val('').val(temp); // focus and move cursor to end
}
function onReloadClick(box) {