Fix T68637: Crash assigning caps-lock shortcut

Report that this isn't supported instead, also for unknown key.
This commit is contained in:
2019-08-14 21:31:41 +10:00
parent 67c10dbf13
commit d2195d9ef2

View File

@@ -4001,6 +4001,11 @@ static int ui_do_but_HOTKEYEVT(bContext *C,
return WM_UI_HANDLER_CONTINUE;
}
else if (event->type == UNKNOWNKEY) {
WM_report(RPT_WARNING, "Unsupported key: Unknown");
return WM_UI_HANDLER_CONTINUE;
}
else if (event->type == CAPSLOCKKEY) {
WM_report(RPT_WARNING, "Unsupported key: CapsLock");
return WM_UI_HANDLER_CONTINUE;
}