fix keybindings relying on caretPos
This commit is contained in:
parent
99cf794efc
commit
a5c68a8053
@ -1524,6 +1524,8 @@ weechat.directive('inputBar', function() {
|
|||||||
}
|
}
|
||||||
// Some readline keybindings
|
// Some readline keybindings
|
||||||
if ($event.ctrlKey && !$event.altKey && !$event.shiftKey && document.activeElement === inputNode) {
|
if ($event.ctrlKey && !$event.altKey && !$event.shiftKey && document.activeElement === inputNode) {
|
||||||
|
// get current caret position
|
||||||
|
var caretPos = inputNode.selectionStart;
|
||||||
// Ctrl-a
|
// Ctrl-a
|
||||||
if (code == 65) {
|
if (code == 65) {
|
||||||
inputNode.setSelectionRange(0, 0);
|
inputNode.setSelectionRange(0, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user