Visit Mozilla.org

DOM:event.isChar

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Returns a boolean indicating whether the event produced a key character or not.

[edit] Syntax

bool = event.isChar 

[edit] Example

 if e.isChar
   echoInput(e.type);
 }

[edit] Notes

Some key combos may raise events but not produce any character (example: ctrl + alt ?). When this is the case, isChar returns false. isChar is used when event handlers need to do something like echo the input on the screen.

There is currently a known bug affecting the return result, which is always false and never true. Please see the discussion link in the sidebar for more details.

[edit] Specification

Not part of specification.