summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-07-15 07:11:36 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-07-15 07:11:36 +0000
commit035938733c3d0754dfa2250cda1af5b04cdf43c4 (patch)
tree82343af7a0c24005d6d3843c6a1965d318c17dcd /src
parentFix for 1023655 : Improvments to Embedded script UI (diff)
downloadinkscape-035938733c3d0754dfa2250cda1af5b04cdf43c4.tar.gz
inkscape-035938733c3d0754dfa2250cda1af5b04cdf43c4.zip
Fix for 167846 : Focus issue between spinbuttons when using Tab
(bzr r11550)
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 );
}
}