Skip to content

Commit 6c884e0

Browse files
author
Stan Janssen
committed
Add explicit shortcut for focusing on the current container
1 parent ea9fa11 commit 6c884e0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/View/Window.vala

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ public class Files.View.Window : Hdy.ApplicationWindow {
6868
{"tabhistory-restore", action_tabhistory_restore, "s" },
6969
{"forward", action_forward, "i"},
7070
{"back", action_back, "i"},
71-
{"focus-sidebar", action_focus_sidebar}
71+
{"focus-sidebar", action_focus_sidebar},
72+
{"focus-current-container", action_focus_current_container}
7273
};
7374

7475
private static uint window_id = 0;
@@ -162,6 +163,7 @@ public class Files.View.Window : Hdy.ApplicationWindow {
162163
marlin_app.set_accels_for_action ("win.tab::TAB", {"<Shift><Ctrl>K"});
163164
marlin_app.set_accels_for_action ("win.tab::WINDOW", {"<Ctrl><Alt>N"});
164165
marlin_app.set_accels_for_action ("win.focus-sidebar", {"<Ctrl><Alt>Left"});
166+
marlin_app.set_accels_for_action ("win.focus-tabview", {"<Ctrl><Alt>Right"});
165167
}
166168

167169
build_window ();
@@ -1006,6 +1008,10 @@ public class Files.View.Window : Hdy.ApplicationWindow {
10061008
sidebar.focus ();
10071009
}
10081010

1011+
private void action_focus_current_container () {
1012+
grab_focus ();
1013+
}
1014+
10091015
private void before_undo_redo () {
10101016
doing_undo_redo = true;
10111017
update_undo_actions ();

0 commit comments

Comments
 (0)