diff options
author | Campbell Barton <campbell@blender.org> | 2022-07-14 09:10:13 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-07-14 09:10:13 +0300 |
commit | b35e33317dd3c1b0b4ceb3aa0b55f805661fdb05 (patch) | |
tree | 2776e9ead36d1d369b8aecc1a368def4703287fb /source/blender/windowmanager/intern/wm_event_system.cc | |
parent | d6fef73ef110eb43756b7b87c2cba80abae3b39f (diff) |
Cleanup: update & correct comments for event handling
- Remove references to `ISTEXTINPUT` as any keyboard event with it's
utf8_buf set can be handled as text input.
- Update references to the key repeat flag.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_event_system.cc')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.cc b/source/blender/windowmanager/intern/wm_event_system.cc index a371fa7e185..757c3aae00c 100644 --- a/source/blender/windowmanager/intern/wm_event_system.cc +++ b/source/blender/windowmanager/intern/wm_event_system.cc @@ -2086,8 +2086,6 @@ static bool wm_eventmatch(const wmEvent *winevent, const wmKeyMapItem *kmi) /* The matching rules. */ if (kmitype == KM_TEXTINPUT) { if (winevent->val == KM_PRESS) { /* Prevent double clicks. */ - /* Not using #ISTEXTINPUT anymore because (at least on Windows) some key codes above 255 - * could have printable ascii keys, See T30479. */ if (ISKEYBOARD(winevent->type) && winevent->utf8_buf[0]) { return true; } @@ -5328,7 +5326,7 @@ void wm_event_add_ghostevent(wmWindowManager *wm, wmWindow *win, int type, void break; } - /* Might be not nullptr terminated. */ + /* Might be not null terminated. */ memcpy(event.utf8_buf, kd->utf8_buf, sizeof(event.utf8_buf)); if (kd->is_repeat) { event.flag |= WM_EVENT_IS_REPEAT; |