Community mailing list archives

Disable some keys of keyboard, using Odoo

Sylvain LE GAL
- 09/09/2015 08:52:43
Hi all,

Recently, my users working on PoS (V7 for the time being) asked me to disable some combination of keys. For example, on Chrome, tipping on backspace key will do a history.back in some cases (*), that is quite annoying because in PoS, the current orders will be lost and the user has to wait that PoS was loaded.

So, I developped a little V7 module to disable some keys.

For instance, it is hardcodded : the module disable "backspace" and "F5" keys.

If some people faced to the same problem, I can share into OCA, making the list of keys configurable.

Let me know if you're interested, or if better solution exists.
Thanks for your attention.

Kind regards.

(* some cases is "if the cursor is not focused in a text field")

Sylvain LE GAL
Service informatique
GRAP - Groupement Régional Alimentaire de Proximité

3 Grande rue des Feuillants, 69001 Lyon
Bureau :
Astreinte :

GRAP sur le Web : Site Web | Facebook | Twitter
GRAP - service Informatique sur le Web : Twitter