fix keybindings relying on caretPos

This commit is contained in:
Tor Hveem 2014-07-21 15:55:50 +02:00
parent 99cf794efc
commit a5c68a8053

View file

@ -1524,6 +1524,8 @@ weechat.directive('inputBar', function() {
}
// Some readline keybindings
if ($event.ctrlKey && !$event.altKey && !$event.shiftKey && document.activeElement === inputNode) {
// get current caret position
var caretPos = inputNode.selectionStart;
// Ctrl-a
if (code == 65) {
inputNode.setSelectionRange(0, 0);