feat: discard playback selection with Escape
This commit is contained in:
+3
-3
@@ -114,7 +114,7 @@ actions! {
|
||||
SearchEdit, "search.edit", "Edit general or current-category search", VIEW, ["i"];
|
||||
ViewSearch, "view.search", "Go to general YouTube Search", VIEW, ["/"];
|
||||
ViewFeed, "view.feed", "Go to the combined subscription Feed", VIEW, ["F"];
|
||||
ViewPrevious, "view.history.previous", "Go back in view history", VIEW, ["-", "escape"];
|
||||
ViewPrevious, "view.history.previous", "Go back in view history", VIEW, ["-"];
|
||||
ViewNext, "view.history.next", "Go forward in view history", VIEW, ["+"];
|
||||
ViewTabNext, "view.tab.next", "Select the next view tab", VIEW, ["tab", "ctrl+tab"];
|
||||
ViewTabPrevious, "view.tab.previous", "Select the previous view tab", VIEW, ["shift+tab"];
|
||||
@@ -126,7 +126,7 @@ actions! {
|
||||
VideoFirst, "video.select.first", "Select the first video", VIEW, ["g", "home"];
|
||||
VideoLast, "video.select.last", "Select the last video", VIEW, ["G", "end"];
|
||||
VideoToggle, "video.select.toggle", "Toggle the selected video's playback check", VIEW, ["space"];
|
||||
VideoClear, "video.select.clear", "Clear playback checks in the current view", VIEW, ["ctrl+space"];
|
||||
VideoClear, "video.select.clear", "Discard playback checks in the current view", VIEW, ["escape", "ctrl+space"];
|
||||
InfoOverview, "video.info.overview", "Show the video overview", VIEW, ["d"];
|
||||
InfoDescription, "video.info.description", "Show the video description", VIEW, ["d"];
|
||||
InfoHide, "video.info.hide", "Close the video preview", &[Context::Info, Context::Description, Context::CollectionInfo, Context::CollectionDescription], ["escape"];
|
||||
@@ -782,7 +782,7 @@ fn overlap_winner(context: Context, first: Action, second: Action) -> Option<Act
|
||||
},
|
||||
);
|
||||
}
|
||||
if pair(InfoHide, ViewPrevious)
|
||||
if (pair(InfoHide, ViewPrevious) || pair(InfoHide, VideoClear))
|
||||
&& matches!(
|
||||
context,
|
||||
Context::Info
|
||||
|
||||
Reference in New Issue
Block a user