Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5793 Widoki

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,

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
1
lut 22
6388
0
lis 19
86
0
kwi 24
1934
1
wrz 23
2036
1
maj 21
8733