Skip to content

Commit

Permalink
Don't consume Ctrl+? on Windows if Alt is not pressed too.
Browse files Browse the repository at this point in the history
Fixes #185.
  • Loading branch information
TomasMikula committed Sep 29, 2015
1 parent 8d4d1c7 commit a876d4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public class StyledTextAreaBehavior implements Behavior {
// filter out control keys
(!e.isControlDown() && !e.isMetaDown())
// except on Windows allow the Ctrl+Alt combination (produced by AltGr)
|| (isWindows && !e.isMetaDown());
|| (isWindows && !e.isMetaDown() && (!e.isControlDown() || e.isAltDown()));

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

0 comments on commit a876d4f

Please sign in to comment.