تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6078 أدوات العرض

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
فبراير 22
6659
0
نوفمبر 19
86
0
أبريل 24
2332
1
سبتمبر 23
2425
1
مايو 21
9125