コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5790 ビュー

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,

アバター
破棄
最善の回答

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.

アバター
破棄
著作者

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

関連投稿 返信 ビュー 活動
1
2月 22
6387
0
11月 19
86
0
4月 24
1934
1
9月 23
2036
1
5月 21
8732