Categories | Question details Back To List | ||||||||
Dhtmlxcombo - onkeypress event Hi, I'm using dhtmlxcombo with Firefox 3. I want to validate my forms with F10 key. To do that, I use the shortcuts.js library (http://www.openjs.com/scripts/events/keyboard_shortcuts/). But when a dhtmlxcombobox has focus, pressing F10 key does nothing. I guess the "onkeypress" event is not propagated. Is there a way to fix that ? I've found another little problem. When I typed some text in a combobox and I clicked directly on the submit form button (without using tab key, only mouse click), the value is lost. Regards, Flo Answer posted by Support on Aug 20, 2008 02:19 The key events inside combo input blocked by component's code dhtmlxcombo.js , line 612, _onKeyF method ev.cancelBubble=true; dhtmlxcombo.js , line 634, _onKey method (e||event).cancelBubble=true; >>and I clicked directly on the submit form Problem confirmed , please try to use attached js file instead of original one - it must work correctly in described scenario. Attachments (1)
Answer posted by Flo on Aug 27, 2008 12:24 Awesome, it works perfectly now. Thanks ! |