Fix error suppressing double-click events for modal keymap handling
This commit is contained in:
parent
cf5304855f
commit
f9e976c899
@ -2395,8 +2395,8 @@ static void wm_event_modalkeymap_begin(const bContext *C,
|
||||
/* Avoid double-click events even in the case of #EVT_MODAL_MAP,
|
||||
* since it's possible users configure double-click key-map items
|
||||
* which would break when modal functions expect press/release. */
|
||||
if (event->prev_type == KM_DBL_CLICK) {
|
||||
event->prev_type = KM_PRESS;
|
||||
if (event->prev_val == KM_DBL_CLICK) {
|
||||
event->prev_val = KM_PRESS;
|
||||
event_backup->dbl_click_disabled = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user