Skip to content

Commit

Permalink
Fix typing using Alt+?. Fixes #139.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasMikula committed Apr 21, 2015
1 parent f75e222 commit 89a2577
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ public class StyledTextAreaBehavior implements Behavior {

Predicate<KeyEvent> noControlKeys = e ->
// filter out control keys
(!e.isControlDown() && !e.isAltDown() && !e.isMetaDown())
(!e.isControlDown() && !e.isMetaDown())
// except on Windows allow the Ctrl+Alt combination (produced by AltGr)
|| (PlatformUtil.isWindows() && e.isControlDown() && e.isAltDown());
|| (isWindows() && !e.isMetaDown());

Predicate<KeyEvent> isChar = e ->
e.getCode().isLetterKey() ||
Expand Down

0 comments on commit 89a2577

Please sign in to comment.