We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb0bac0 + 34229be commit 4200adfCopy full SHA for 4200adf
CanvasInput.js
@@ -1,5 +1,5 @@
1
/*!
2
- * CanvasInput v1.2.0
+ * CanvasInput v1.2.1
3
* http://goldfirestudios.com/blog/108/CanvasInput-HTML5-Canvas-Text-Input
4
*
5
* (c) 2013-2015, James Simpson of GoldFire Studios
@@ -149,6 +149,8 @@
149
// update the canvas input state information from the hidden input
150
self._value = self._hiddenInput.value;
151
self._cursorPos = self._hiddenInput.selectionStart;
152
+ // update selection to hidden input's selection in case user did keyboard-based selection
153
+ self._selection = [self._hiddenInput.selectionStart, self._hiddenInput.selectionEnd];
154
self.render();
155
156
if (self._hasFocus) {
0 commit comments