Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5800 Lượt xem

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,

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 22
6390
0
thg 11 19
86
0
thg 4 24
1934
1
thg 9 23
2036
1
thg 5 21
8733