Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5813 Zobrazení

Dear All,


I want to add some shortcut keys in POS terminal Popup window, like if  have popup window which list all the product means , if i press down arrow then next row should be selected in the popup window similarly up arrow prev row should be selected in the popup window. if any one have idea means please share with me.


Thanks In Advance,

Avatar
Zrušit
Nejlepší odpověď

HI!,

You can do it by assigning event listeners for your particular key in the popup widget. Here is an example of code to do in the show function of popup widget:

show: function(){

    window.document.body.addEventListener('keydown',this.keyboard_keydown_handler);

    this._super();

},

where "this.keyboard_keydown_handler" is a function in the widget.


Hope this helps!

Cheers.

Avatar
Zrušit
Autor

Thank You Mr.shyam kishore i will try this one.

Related Posts Odpovědi Zobrazení Aktivita
1
úno 22
6396
0
lis 19
86
0
dub 24
1936
1
zář 23
2041
1
kvě 21
8733