Thursday, 15 July 2010

extjs4 - How can I ignore the date picker when I press down in date field -



extjs4 - How can I ignore the date picker when I press down in date field -

i have date field in extjs 4, , want add together custom event downwards arrow key, date field shows picker , lost focus on pressing downwards arrow on keyboard. how can disable event utilize event?

thx answers!

specialkey: function (t, e, opts) { console.log(e.getkey()); var key = e.getkey(); this.keyevents(t, key); }

...

keyevents: function (t, key) { switch(key){ case 38: // break; case 40: // downwards // picker off?????? break; case 37: // left break; case 39: // right break; } }

easiest create subclass of date field , override downwards handling method:

ext.define('mydate', { extend: 'ext.form.field.date', alias: 'widget.mydate', ondownarrow: ext.emptyfn });

extjs4

No comments:

Post a Comment