09-22-2020, 05:50 PM
Howdy All!
I am in the process of trying to add a version of my barcode scanner routine (keyboard handler) into my IW app.
What I need to do is keep reading the keyboard (OnChar) and look for a start delimiter and an ending delimiter (or ESC to abort the keyboard read).
In my VCL app, I just put up a modal dialog with a label and a Cancel button and I implement the aforementioned routine trapping the form's OnChar event.
I would like to do something similar in an IW javascript routine.
I really am ignorant when it comes to programming in javascript and I have Googled for hours and can't find anything more than a simple OnKeyDown routine example.
Has anyone an example of how to implement this?
All the best and thanks in advance,
Shane
I am in the process of trying to add a version of my barcode scanner routine (keyboard handler) into my IW app.
What I need to do is keep reading the keyboard (OnChar) and look for a start delimiter and an ending delimiter (or ESC to abort the keyboard read).
In my VCL app, I just put up a modal dialog with a label and a Cancel button and I implement the aforementioned routine trapping the form's OnChar event.
I would like to do something similar in an IW javascript routine.
I really am ignorant when it comes to programming in javascript and I have Googled for hours and can't find anything more than a simple OnKeyDown routine example.
Has anyone an example of how to implement this?
All the best and thanks in advance,
Shane