Fix T44278: Tab, Z-Key and Spacebar not working
Seems like a fix that is needed for some X11 systems causes this bug on others :| Not sure if the systems that needed this fix are now still fine (since I did a slight change to the click type check procedure), but I need to check that on my system in the institute in a bit.
This commit is contained in:
parent
26e50295ce
commit
883663a0ad
Notes:
blender-bot
2024-01-16 18:05:25 +01:00
Referenced by issue #44278, Sticky Keys: TabKey cannot be used to enter editmode
|
@ -3025,12 +3025,9 @@ static void wm_event_clicktype_init(wmWindow *win, wmEvent *event, wmEvent *even
|
|||
}
|
||||
}
|
||||
|
||||
/* click */
|
||||
if ((PIL_check_seconds_timer() - event->click_time) * 1000 <= U.click_timeout) {
|
||||
/* for any reason some X11 systems send two release events triggering two KM_CLICK events
|
||||
* - making the rules more strict by checking for prevval resolves this (not needed for mouse) */
|
||||
if (event->val == KM_RELEASE &&
|
||||
(ISMOUSE(event->type) || event->prevval != KM_RELEASE))
|
||||
{
|
||||
if (event->val == KM_RELEASE) {
|
||||
click_type = KM_CLICK;
|
||||
if (G.debug & (G_DEBUG_HANDLERS | G_DEBUG_EVENTS)) {
|
||||
printf("%s Send click event\n", __func__);
|
||||
|
|
Loading…
Reference in New Issue