Click after focus input/textarea element to show blink cursor.

master
Andy Stewart 6 years ago
parent d0b715b595
commit c1ca9521ee
  1. 6
      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

Loading…
Cancel
Save