From: joncruz Date: Mon, 23 Oct 2006 05:43:36 +0000 (+0000) Subject: Corrected focus problems by moving flag setting back to first thing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7e12c403a735c444d4e843a1050708bae5471bd1;p=inkscape.git Corrected focus problems by moving flag setting back to first thing --- diff --git a/src/ege-adjustment-action.cpp b/src/ege-adjustment-action.cpp index 0584e66ba..a2ea9ff0d 100644 --- a/src/ege-adjustment-action.cpp +++ b/src/ege-adjustment-action.cpp @@ -476,8 +476,8 @@ gboolean keypress_cb( GtkWidget *widget, GdkEventKey *event, gpointer data ) switch ( key ) { case GDK_Escape: { - gtk_spin_button_set_value( GTK_SPIN_BUTTON(widget), action->private_data->lastVal ); action->private_data->transferFocus = TRUE; + gtk_spin_button_set_value( GTK_SPIN_BUTTON(widget), action->private_data->lastVal ); ege_adjustment_action_defocus( action ); wasConsumed = TRUE; } @@ -509,9 +509,9 @@ gboolean keypress_cb( GtkWidget *widget, GdkEventKey *event, gpointer data ) case GDK_Up: case GDK_KP_Up: { + action->private_data->transferFocus = FALSE; gdouble val = gtk_spin_button_get_value( GTK_SPIN_BUTTON(widget) ); gtk_spin_button_set_value( GTK_SPIN_BUTTON(widget), val + action->private_data->step ); - action->private_data->transferFocus = FALSE; wasConsumed = TRUE; } break; @@ -519,9 +519,9 @@ gboolean keypress_cb( GtkWidget *widget, GdkEventKey *event, gpointer data ) case GDK_Down: case GDK_KP_Down: { + action->private_data->transferFocus = FALSE; gdouble val = gtk_spin_button_get_value( GTK_SPIN_BUTTON(widget) ); gtk_spin_button_set_value( GTK_SPIN_BUTTON(widget), val - action->private_data->step ); - action->private_data->transferFocus = FALSE; wasConsumed = TRUE; } break; @@ -529,9 +529,9 @@ gboolean keypress_cb( GtkWidget *widget, GdkEventKey *event, gpointer data ) case GDK_Page_Up: case GDK_KP_Page_Up: { + action->private_data->transferFocus = FALSE; gdouble val = gtk_spin_button_get_value( GTK_SPIN_BUTTON(widget) ); gtk_spin_button_set_value( GTK_SPIN_BUTTON(widget), val + action->private_data->page ); - action->private_data->transferFocus = FALSE; wasConsumed = TRUE; } break; @@ -539,9 +539,9 @@ gboolean keypress_cb( GtkWidget *widget, GdkEventKey *event, gpointer data ) case GDK_Page_Down: case GDK_KP_Page_Down: { + action->private_data->transferFocus = FALSE; gdouble val = gtk_spin_button_get_value( GTK_SPIN_BUTTON(widget) ); gtk_spin_button_set_value( GTK_SPIN_BUTTON(widget), val - action->private_data->page ); - action->private_data->transferFocus = FALSE; wasConsumed = TRUE; } break; @@ -549,8 +549,8 @@ gboolean keypress_cb( GtkWidget *widget, GdkEventKey *event, gpointer data ) case GDK_z: case GDK_Z: { - gtk_spin_button_set_value( GTK_SPIN_BUTTON(widget), action->private_data->lastVal ); action->private_data->transferFocus = FALSE; + gtk_spin_button_set_value( GTK_SPIN_BUTTON(widget), action->private_data->lastVal ); wasConsumed = TRUE; } break;