diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-07 14:21:34 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-07 14:22:55 +0300 |
commit | 1e0e1ad20f07990e8a48020dc944d414b5588ae6 (patch) | |
tree | 2a05de6f5a4c0c8ef442d6e41a08111044345db9 /source/blender/editors | |
parent | 2935b6a2acb525ec804082ca0cffa8a33a7aa637 (diff) |
Cleanup: note that checking only the left modifiers isn't a mistake
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_icons_event.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_icons_event.c b/source/blender/editors/interface/interface_icons_event.c index 00c1bcb5f6e..6ad5fe805ab 100644 --- a/source/blender/editors/interface/interface_icons_event.c +++ b/source/blender/editors/interface/interface_icons_event.c @@ -145,10 +145,10 @@ void icon_draw_rect_input(float x, SNPRINTF(str, "F%d", 1 + (event_type - EVT_F1KEY)); icon_draw_rect_input_text(&rect, color, str, event_type > EVT_F9KEY ? 8.0f : 10.0f); } - else if (event_type == EVT_LEFTSHIFTKEY) { + else if (event_type == EVT_LEFTSHIFTKEY) { /* Right Shift has already been converted to left. */ icon_draw_rect_input_symbol(&rect, color, (const char[]){0xe2, 0x87, 0xa7, 0x0}); } - else if (event_type == EVT_LEFTCTRLKEY) { + else if (event_type == EVT_LEFTCTRLKEY) { /* Right Shift has already been converted to left. */ if (platform == MACOS) { icon_draw_rect_input_symbol(&rect, color, (const char[]){0xe2, 0x8c, 0x83, 0x0}); } @@ -156,7 +156,7 @@ void icon_draw_rect_input(float x, icon_draw_rect_input_text(&rect, color, "Ctrl", 9.0f); } } - else if (event_type == EVT_LEFTALTKEY) { + else if (event_type == EVT_LEFTALTKEY) { /* Right Alt has already been converted to left. */ if (platform == MACOS) { icon_draw_rect_input_symbol(&rect, color, (const char[]){0xe2, 0x8c, 0xa5, 0x0}); } |