Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_handlers.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 8,894 Lines • ▼ Show 20 Lines | #ifdef USE_DRAG_MULTINUM | ||||
| data->multi_data.skip = true; | data->multi_data.skip = true; | ||||
| #endif | #endif | ||||
| } | } | ||||
| button_activate_exit(C, but, data, (post_but == NULL), false); | button_activate_exit(C, but, data, (post_but == NULL), false); | ||||
| /* for jumping to the next button with tab while text editing */ | /* for jumping to the next button with tab while text editing */ | ||||
| if (post_but) { | if (post_but) { | ||||
| /* The post_but still has previous ranges (without the changes in active button considered), | |||||
| * needs refreshing the ranges. */ | |||||
| ui_but_range_set_soft(post_but); | |||||
| ui_but_range_set_hard(post_but); | |||||
| button_activate_init(C, region, post_but, post_type); | button_activate_init(C, region, post_but, post_type); | ||||
| } | } | ||||
| else if (!((event->type == EVT_BUT_CANCEL) && (event->val == 1))) { | else if (!((event->type == EVT_BUT_CANCEL) && (event->val == 1))) { | ||||
| /* XXX issue is because WM_event_add_mousemove(wm) is a bad hack and not reliable, | /* XXX issue is because WM_event_add_mousemove(wm) is a bad hack and not reliable, | ||||
| * if that gets coded better this bypass can go away too. | * if that gets coded better this bypass can go away too. | ||||
| * | * | ||||
| * This is needed to make sure if a button was active, | * This is needed to make sure if a button was active, | ||||
| * it stays active while the mouse is over it. | * it stays active while the mouse is over it. | ||||
| ▲ Show 20 Lines • Show All 2,163 Lines • Show Last 20 Lines | |||||