tried something new on mac -> did not work

This commit is contained in:
Skycoder42
2016-02-06 17:13:24 +01:00
parent 1579ea509a
commit cbdcfeed95
-1
View File
@@ -140,7 +140,6 @@ quint32 QHotkeyPrivateMac::nativeKeycode(Qt::Key keycode)
UCKeyboardTypeHeader* table = header->keyboardTypeList; UCKeyboardTypeHeader* table = header->keyboardTypeList;
uint8_t *data = (uint8_t*)header; uint8_t *data = (uint8_t*)header;
// God, would a little documentation for this shit kill you...
for (quint32 i=0; i < header->keyboardTypeCount; i++) { for (quint32 i=0; i < header->keyboardTypeCount; i++) {
UCKeyStateRecordsIndex* stateRec = 0; UCKeyStateRecordsIndex* stateRec = 0;
if (table[i].keyStateRecordsIndexOffset != 0) { if (table[i].keyStateRecordsIndexOffset != 0) {