Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caret always on last word #19

Closed
dhinugraha opened this issue Mar 26, 2021 · 3 comments
Closed

Caret always on last word #19

dhinugraha opened this issue Mar 26, 2021 · 3 comments
Assignees
Labels
bug Something isn't working fixed Has been fixed.

Comments

@dhinugraha
Copy link

Hi,
Let say I have initial value in input text : 'ABC DEF'
then I want to insert 123 between C and D.
It must to be : 'ABC123 DEF'
But when I type 123, VK always produce : 'ABC1 DEF23'

config :

theme: 'material',
capsLockActive: true,
allowRealKeyboard: true,
cssAnimations: true,
cssAnimationsDuration: 360,
cssAnimationsStyle: 'slide',
keysAllowSpacebar: true,
keysSpacebarText: 'Space',
keysFontFamily: 'sans-serif',
keysFontSize: '22px',
keysFontWeight: 'normal',
keysIconSize: '25px',
allowMobileKeyboard: true,
autoScroll: true
dhinugraha added a commit to dhinugraha/KioskBoard that referenced this issue Mar 29, 2021
dhinugraha added a commit to dhinugraha/KioskBoard that referenced this issue Mar 29, 2021
- Bug fixed wrong input variable
- Patch to kioskboard-aio.js
@furcan
Copy link
Owner

furcan commented Apr 13, 2021

Hi @dhinugraha

Unfortunately, you have to click the exact selection index that you wanted for each time on the inputs. Otherwise, the next value that you have pressed will be added to the end automatically.

I couldn't find a proper solution for this situation that will be worked with all browsers. (Any help is welcomed.)

Thanks.
Furkan.

@furcan furcan closed this as completed Apr 13, 2021
@furcan furcan self-assigned this Apr 21, 2021
@furcan furcan added the bug Something isn't working label Apr 21, 2021
@furcan
Copy link
Owner

furcan commented Apr 21, 2021

Hi @dhinugraha

I created a solution and I will implement it asap.

Thanks,
Furkan.

@furcan furcan reopened this Apr 21, 2021
furcan added a commit that referenced this issue Apr 21, 2021
Fixed: The dispatcher issue on the input change event has been fixed: ([#11](#11))

Fixed: The current text selection issue has been fixed: ([#19](#19))

Added: The `max` and `maxlength` attribute controls have been added: ([#17](#17))

Added: The `options` parameter has been added to the `Run()` function to set the initialize options. => `KioskBoard.Run(selector, options);`

Changed: The `selector` parameter has been changed to `selectorOrElement` that also can use an element instead of the query selector. => `KioskBoard.Run(selectorOrElement);`

Changed: The `Merge()` function has been deprecated.

Changed: Code Review.
@furcan
Copy link
Owner

furcan commented Apr 21, 2021

Hi @dhinugraha

The issue has been fixed (v1.4.0)

Thanks,
Furkan.

@furcan furcan closed this as completed Apr 21, 2021
@furcan furcan added the fixed Has been fixed. label Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed Has been fixed.
Projects
None yet
Development

No branches or pull requests

2 participants