From c1ca9521eeeec9b364b66a8d3281764ca3e5f176 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Sun, 2 Feb 2020 10:18:28 +0800 Subject: [PATCH] Click after focus input/textarea element to show blink cursor. --- core/js/goto_marker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/js/goto_marker.js b/core/js/goto_marker.js index 462b0ed..6b93719 100644 --- a/core/js/goto_marker.js +++ b/core/js/goto_marker.js @@ -30,9 +30,9 @@ } else if(link.getAttribute('type') === 'checkbox'){ link.click(); } else { - link.focus(); - // Move cursor to the end of line after focus. - moveCursorToEnd(link); + link.focus(); // focus + link.click(); // show blink cursor + moveCursorToEnd(link); // move cursor to the end of line after focus. } } else if((link.nodeName.toLowerCase() === 'button') || // normal button (link.hasAttribute('aria-haspopup')) || // menu button