Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to add shortcut key in Point of sale Popup screen ?

By
santhosh
on 9/14/16, 1:28 AM 271 views

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,

0
Shyam Kishore
On 9/14/16, 2:45 AM

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.

santhosh
on 9/14/16, 5:22 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/14/16, 1:28 AM
Seen: 271 times
Last updated: 9/15/16, 9:53 AM