gtk: use GTK_NO_TEXT_INPUT_MOD_MASK also in gtkfilechooserdefault.c

This commit is contained in:
Michael Natterer 2011-09-17 15:25:02 +02:00 committed by Michael Natterer
parent 1f6a921158
commit b057a311e7

View File

@ -3687,18 +3687,15 @@ browse_files_key_press_event_cb (GtkWidget *widget,
gpointer data)
{
GtkFileChooserDefault *impl;
int modifiers;
impl = (GtkFileChooserDefault *) data;
modifiers = gtk_accelerator_get_default_mod_mask ();
if ((event->keyval == GDK_KEY_slash
|| event->keyval == GDK_KEY_KP_Divide
#ifdef G_OS_UNIX
|| event->keyval == GDK_KEY_asciitilde
#endif
) && ! (event->state & (~GDK_SHIFT_MASK & modifiers)))
) && !(event->state & GTK_NO_TEXT_INPUT_MOD_MASK))
{
location_popup_handler (impl, event->string);
return TRUE;
@ -3715,7 +3712,7 @@ browse_files_key_press_event_cb (GtkWidget *widget,
|| event->keyval == GDK_KEY_KP_Enter
|| event->keyval == GDK_KEY_space
|| event->keyval == GDK_KEY_KP_Space)
&& ((event->state & modifiers) == 0)
&& !(event->state & gtk_get_default_accel_mod_mask ())
&& !(impl->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER ||
impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER))
{