Mercurial > hg > pub > prymula > com
diff kopieckreta/src/Actions.java @ 23:489244127359
kopieckreta-0.240903-0
author | Przemyslaw <prymula76@outlook.com> |
---|---|
date | Mon, 01 Apr 2024 07:15:00 +0200 |
parents | 2787f5e749ae |
children |
line wrap: on
line diff
--- a/kopieckreta/src/Actions.java Sun Mar 31 22:53:32 2024 +0200 +++ b/kopieckreta/src/Actions.java Mon Apr 01 07:15:00 2024 +0200 @@ -23,18 +23,12 @@ if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('a')) { isThere('a'); } - else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('ą')) { - isThere('ą'); - } else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('w')) { isThere('w'); } else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('e')) { isThere('e'); } - else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('ę')) { - isThere('ę'); - } else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('r')) { isThere('r'); } @@ -53,18 +47,12 @@ else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('o')) { isThere('o'); } - else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('ó')) { - isThere('ó'); - } else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('p')) { isThere('p'); } else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('s')) { isThere('s'); } - else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('ś')) { - isThere('ś'); - } else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('d')) { isThere('d'); } @@ -86,33 +74,18 @@ else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('l')) { isThere('l'); } - else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('ł')) { - isThere('ł'); - } else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('z')) { isThere('z'); } - else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('ż')) { - isThere('ż'); - } - else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('ź')) { - isThere('ź'); - } else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('c')) { isThere('c'); } - else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('ć')) { - isThere('ć'); - } else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('b')) { isThere('b'); } else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('n')) { isThere('n'); } - else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('ń')) { - isThere('ń'); - } else if (event.getExtendedKeyCode() == KeyEvent.getExtendedKeyCodeForChar('m')) { isThere('m'); } @@ -141,7 +114,7 @@ } private void isThere(char c){ - // Nie wiem czemu od razu nie przekazałem dużej litery... + // Nie wiem czemu od razu nie przekazalem duzej litery... pressKey=Character.toUpperCase(c); resetCheat(); }