Class KeyEventWorkaround


  • public class KeyEventWorkaround
    extends java.lang.Object
    Various hacks to get keyboard event handling to behave in a consistent manner across Java implementations. This type of stuff should not be necessary, but Java's keyboard handling is crap, to put it mildly.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isBindable​(int keyCode)  
      static boolean isPrintable​(int keyCode)
      We need to know if a keycode can potentially result in a keytyped.
      static java.awt.event.KeyEvent processKeyEvent​(java.awt.event.KeyEvent evt)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KeyEventWorkaround

        public KeyEventWorkaround()
    • Method Detail

      • isBindable

        public static boolean isBindable​(int keyCode)
      • isPrintable

        public static boolean isPrintable​(int keyCode)
        We need to know if a keycode can potentially result in a keytyped.
        Since:
        jEdit 4.3pre2
      • processKeyEvent

        public static java.awt.event.KeyEvent processKeyEvent​(java.awt.event.KeyEvent evt)