summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ege-adjustment-action.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ege-adjustment-action.cpp b/src/ege-adjustment-action.cpp
index 8ee240b30..398eb9d33 100644
--- a/src/ege-adjustment-action.cpp
+++ b/src/ege-adjustment-action.cpp
@@ -780,6 +780,13 @@ static GtkWidget* create_menu_item( GtkAction* action )
void value_changed_cb( GtkSpinButton* spin, EgeAdjustmentAction* act )
{
if ( gtk_widget_has_focus( GTK_WIDGET(spin) ) ) {
+ gint start = 0, end = 0;
+ if (gtk_editable_get_selection_bounds (GTK_EDITABLE(spin), &start, &end)
+ && start != end) {
+ // #167846, #363000 If the spin button has a selection, its probably
+ // because we got here from a Tab key from another spin, if so dont defocus
+ return;
+ }
ege_adjustment_action_defocus( act );
}
}