[dconf-editor] Allow more shortcuts in search.



commit 266a2b8cd7150b3db0e4cd54a9da2e5f88da44f9
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed Dec 19 17:49:50 2018 +0100

    Allow more shortcuts in search.

 editor/browser-window.vala | 4 ++--
 editor/pathentry.vala      | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/editor/browser-window.vala b/editor/browser-window.vala
index 34bd2e7..513b73b 100644
--- a/editor/browser-window.vala
+++ b/editor/browser-window.vala
@@ -502,7 +502,7 @@ private abstract class BrowserWindow : BaseWindow
 
     private void edit_path_end                          (/* SimpleAction action, Variant? variant */)
     {
-        if (navigation_blocked (/* allow search */ false))
+        if (navigation_blocked (/* allow search */ true))
             return;
 
         request_search (true, PathEntry.SearchMode.EDIT_PATH_MOVE_END);
@@ -510,7 +510,7 @@ private abstract class BrowserWindow : BaseWindow
 
     private void edit_path_last                         (/* SimpleAction action, Variant? variant */)
     {
-        if (navigation_blocked (/* allow search */ false))
+        if (navigation_blocked (/* allow search */ true))
             return;
 
         request_search (true, PathEntry.SearchMode.EDIT_PATH_SELECT_LAST_WORD);
diff --git a/editor/pathentry.vala b/editor/pathentry.vala
index fe8c0a5..c35e568 100644
--- a/editor/pathentry.vala
+++ b/editor/pathentry.vala
@@ -152,6 +152,7 @@ private class PathEntry : Box, AdaptativeWidget
                 return;
 
             case SearchMode.EDIT_PATH_SELECT_LAST_WORD:
+                search_entry.move_cursor (MovementStep.DISPLAY_LINE_ENDS, -1, false);
                 search_entry.text = current_path;
                 if (search_entry.text_length == 1)  // root
                 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]