Dec 23, 2010, 11:44 AM
[FIXED] [1.0 RC] KeyMap StopEvent in IE
Hi!
I have this piece of code inside my page to detect Ctrl+O shortcut, for example. It also happens with F5 shortcut.
And only in IE8, the event pass to the browser and opens a window, or refresh if the key is F5.
How can I solve it? Or what I have to do to fix it?
I have this piece of code inside my page to detect Ctrl+O shortcut, for example. It also happens with F5 shortcut.
<ext:KeyMap runat="server" Target="={Ext.isGecko ? Ext.getDoc() : Ext.getBody()}">
<ext:KeyBinding StopEvent="true" Ctrl="true">
<Keys>
<ext:Key Code="O" />
</Keys>
<Listeners>
<Event Handler="Ext.Msg.alert('Sample');" />
</Listeners>
</ext:KeyBinding>
</ext:KeyMap>
I tested in the latest build of the most popular browsers: Firefox 3.6.13, Chrome 8.0.552.224 and IE 8.0.7600.16385.And only in IE8, the event pass to the browser and opens a window, or refresh if the key is F5.
How can I solve it? Or what I have to do to fix it?
Last edited by Daniil; Jun 27, 2011 at 10:35 AM.
Reason: [FIXED]