This commit is contained in:
Dario Manesku 2015-03-09 03:21:33 +01:00
parent bd9cd80cc0
commit 205fa041e9

View File

@ -312,7 +312,7 @@ namespace entry
{ {
enum { ShiftMask = Modifier::LeftShift|Modifier::RightShift }; enum { ShiftMask = Modifier::LeftShift|Modifier::RightShift };
const bool nonShiftModifiers = (0 != (modifiers&(~ShiftMask) ) ); const bool nonShiftModifiers = (0 != (modifiers&(~ShiftMask) ) );
const bool isCharPressed = (Key::Key0 <= key && key <= Key::KeyZ) || (Key::Esc <= key && key <= Key::Minus) ; const bool isCharPressed = (Key::Key0 <= key && key <= Key::KeyZ) || (Key::Esc <= key && key <= Key::Minus);
const bool isText = isCharPressed && !nonShiftModifiers; const bool isText = isCharPressed && !nonShiftModifiers;
if (isText) if (isText)
{ {