Skip to content

Commit 248ca5f

Browse files
authored
Merge branch 'main' into jeremypw/dnd/drop-target-on-demand
2 parents da32d6b + fe16519 commit 248ca5f

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

libcore/DndHandler.vala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ namespace Files {
388388
var actions = possible_actions;
389389
var suggested_action = selected_action;
390390
var target_location = dest.get_target_location ();
391-
suggested_action_return = Gdk.DragAction.PRIVATE;
391+
suggested_action_return = Gdk.DragAction.DEFAULT;
392392

393393
if (drop_file_list == null || drop_file_list.data == null) {
394394
return Gdk.DragAction.DEFAULT;
@@ -406,8 +406,7 @@ namespace Files {
406406
} else if (dest.is_executable ()) {
407407
actions |= (Gdk.DragAction.COPY |
408408
Gdk.DragAction.MOVE |
409-
Gdk.DragAction.LINK |
410-
Gdk.DragAction.PRIVATE);
409+
Gdk.DragAction.LINK);
411410
} else {
412411
actions = Gdk.DragAction.DEFAULT;
413412
}

src/View/Window.vala

Lines changed: 8 additions & 2 deletions
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;
@@ -161,7 +162,8 @@ public class Files.View.Window : Hdy.ApplicationWindow {
161162
marlin_app.set_accels_for_action ("win.back(1)", {"<Alt>Left", "XF86Back"});
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"});
164-
marlin_app.set_accels_for_action ("win.focus-sidebar", {"<Ctrl>Left"});
165+
marlin_app.set_accels_for_action ("win.focus-sidebar", {"<Ctrl><Alt>Left"});
166+
marlin_app.set_accels_for_action ("win.focus-current-container", {"<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)