Dart - event.preventDefault is not woking for IE -
i writing dart programme has suppress browser-specific keys, alt-h (shortcut help in ie) , programmatic instead.
i intercept both keyup , keydown events (window.onkeydown , window.onkeyup) and, if key+mod (like alt-h) matches our custom definition, phone call
e.preventdefault()
and process event later in code.
this works in chrome , ff, in ie phone call e.preventdefault() not seem have effect. checked e.defaultprevented
value , "true". ie shows help dialog , event not propagated further.
are there special tricks ie? known bug/feature?
i'd ie not back upwards canceling keyups/downs/presses alt key invoked. thats simple reply here.
you cannot cancel strg+n in chrome example.
regards, robert
events dart
No comments:
Post a Comment