Class AbstractAltSymbolsKeyListener


  • public class AbstractAltSymbolsKeyListener
    extends Object
    Abstract key listener for replace different keys combinations with left alt on Russian keyboard to visible symbol For example,
    • "leftAlt+7" replace to symbol "&"
    • "leftAlt+б" replace to symbol "<"
    • etc
    • Constructor Detail

      • AbstractAltSymbolsKeyListener

        public AbstractAltSymbolsKeyListener()
        Constructor
    • Method Detail

      • checkMask

        protected boolean checkMask​(int stateMask)
        Checks that left alt was pressed
        Parameters:
        stateMask - state mask of KeyEvent
        Returns:
        true if left alt was pressed, false otherwise
      • convertChar

        protected String convertChar​(char character)
        Convert char from Russian keybord that was pressed with left alt to visible symbol
        Parameters:
        character - converting symbol
        Returns:
        converted symbol