Module jEdit

Class KeyEventWorkaround

java.lang.Object
org.gjt.sp.jedit.gui.KeyEventWorkaround

public class KeyEventWorkaround extends 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.
Version:
$Id: KeyEventWorkaround.java 24859 2018-04-10 23:06:33Z daleanson $
Author:
Slava Pestov
  • Constructor Details

    • KeyEventWorkaround

      public KeyEventWorkaround()
  • Method Details

    • 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 KeyEvent processKeyEvent(KeyEvent evt)