Fix T68637: Crash assigning caps-lock shortcut

Report that this isn't supported instead, also for unknown key.
This commit is contained in:
Campbell Barton 2019-08-14 21:31:41 +10:00
parent 67c10dbf13
commit d2195d9ef2
Notes: blender-bot 2023-02-14 03:03:03 +01:00
Referenced by issue #68637, caps lock shortcut crash
1 changed files with 5 additions and 0 deletions

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;
}