Bind caret handler events once regardless of number of instances

This commit is contained in:
Francisco Hodge
2018-11-24 21:12:19 -05:00
parent b8fc9425ba
commit d8c1327eff
3 changed files with 64 additions and 24 deletions
+12
View File
@@ -210,6 +210,18 @@ it('Keyboard standard button will affect input', () => {
}
});
it('Keyboard updateCaretPos will work with minus', () => {
testUtil.setDOM();
let keyboard = new Keyboard();
keyboard.options.syncInstanceInputs = true;
keyboard.caretPosition = 5;
keyboard.utilities.updateCaretPos(2, true);
expect(keyboard.caretPosition).toBe(3);
});
it('Keyboard updateCaretPos will work with minus', () => {
testUtil.setDOM();