Class KeyAdapter

    • Constructor Detail

      • KeyAdapter

        public KeyAdapter()
    • Method Detail

      • keyReleased

        public void keyReleased​(KeyEvent e)
        Description copied from interface: KeyListener
        A key has been released, excluding auto-repeat modifier keys. See KeyEvent.

        To simulated the removed keyTyped(KeyEvent e) semantics, simply apply the following constraints upfront and bail out if not matched, i.e.:

                if( !e.isPrintableKey() || e.isAutoRepeat() ) {
                    return;
                }
         

        Specified by:
        keyReleased in interface KeyListener