Ticket #2218: InputServer.diff

File InputServer.diff, 764 bytes (added by shinta, 16 years ago)
  • src/servers/input/InputServer.cpp

     
    15251525                PRINT(("SanitizeEvents: %lx, %lx\n", fKeyInfo.modifiers,
    15261526                    fKeyInfo.key_states[KEY_Spacebar >> 3]));
    15271527
    1528                 int8 byte;
    1529                 if ((fKeyInfo.modifiers & B_COMMAND_KEY) != 0
    1530                     && event->FindInt8("byte", &byte) == B_OK && byte == ' ') {
     1528                int8 byte = 0;
     1529                event->FindInt8("byte", &byte);
     1530                if ((fKeyInfo.modifiers & B_COMMAND_KEY) != 0 && byte == ' '
     1531                    || static_cast<uint8>(byte) == 0xf3) {
    15311532                    SetNextMethod(!fKeyInfo.modifiers & B_SHIFT_KEY);
    15321533
    15331534                    // this event isn't sent to the user