Skip to content

Commit

Permalink
Do not activate "find" with space character (#2452)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremypw authored Aug 16, 2024
1 parent 96147b9 commit 3e238a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/View/Window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,10 @@ public class Files.View.Window : Hdy.ApplicationWindow {
var mods = state & Gtk.accelerator_get_default_mod_mask ();
/* Use find function instead of view interactive search */
if (mods == 0 || mods == Gdk.ModifierType.SHIFT_MASK) {
/* Use printable characters to initiate search */
/* Use printable characters (except space) to initiate search */
/* Space is handled by directory view to open file items */
var uc = (unichar)(Gdk.keyval_to_unicode (keyval));
if (uc.isprint ()) {
if (uc.isprint () && !uc.isspace ()) {
activate_action ("find", uc.to_string ());
return Gdk.EVENT_STOP;
}
Expand Down

0 comments on commit 3e238a4

Please sign in to comment.