Commit ecc9c957 authored by Ernestas Kulik's avatar Ernestas Kulik 🦑

location-entry: Do not attempt auto-completion on ESC presses

Currently, if org.gnome.nautilus.preferences.always-use-location-entry
is enabled, pressing Escape will be treated as if it would insert text
and trigger auto-completion. This is inconsistent with when the location
entry is conditionally visible.
parent 50eb41a8
......@@ -440,6 +440,9 @@ entry_would_have_inserted_characters (const GdkEvent *event)
case GDK_KEY_KP_Left:
case GDK_KEY_KP_Right:
case GDK_KEY_Return:
/* For when the entry is set to be always visible.
case GDK_KEY_Escape:
return FALSE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment