fix: default enqueue to Ctrl+Return only
This commit is contained in:
+1
-5
@@ -239,11 +239,7 @@ fn playback_checks_render_independently_and_live_hints_use_configured_keys() {
|
||||
|
||||
#[test]
|
||||
fn playback_checks_survive_spawn_failure_clear_after_spawn_and_fall_back_to_hover() {
|
||||
for modifiers in [
|
||||
KeyModifiers::NONE,
|
||||
KeyModifiers::SUPER,
|
||||
KeyModifiers::CONTROL,
|
||||
] {
|
||||
for modifiers in [KeyModifiers::NONE, KeyModifiers::CONTROL] {
|
||||
let mut app = app(&["tubular"]);
|
||||
app.views[0].videos = youtube::search_results(
|
||||
r#"{"entries":[{"id":"jNQXAC9IVRw","title":"First"},{"id":"rQ_J9WH6CGk","title":"Second"}]}"#,
|
||||
|
||||
+5
-1
@@ -66,7 +66,7 @@ fn enqueue_is_configurable_and_only_active_in_video_views() {
|
||||
let overrides = configured("[keys.video]\nenqueue = 'f22'\n").unwrap();
|
||||
for &context in ALL {
|
||||
let expected = VIEW.contains(&context).then_some(Action::VideoEnqueue);
|
||||
for modifiers in [KeyModifiers::SUPER, KeyModifiers::CONTROL] {
|
||||
for modifiers in [KeyModifiers::CONTROL] {
|
||||
assert_eq!(
|
||||
press(&defaults, context, KeyCode::Enter, modifiers),
|
||||
expected
|
||||
@@ -76,6 +76,10 @@ fn enqueue_is_configurable_and_only_active_in_video_views() {
|
||||
Some(Action::VideoEnqueue),
|
||||
);
|
||||
}
|
||||
assert_eq!(
|
||||
press(&defaults, context, KeyCode::Enter, KeyModifiers::SUPER),
|
||||
None
|
||||
);
|
||||
assert_eq!(
|
||||
press(&overrides, context, KeyCode::F(22), KeyModifiers::NONE),
|
||||
expected,
|
||||
|
||||
@@ -736,11 +736,7 @@ fn collection_checks_prune_hidden_and_removed_episodes_without_resurrection() {
|
||||
#[cfg(unix)]
|
||||
#[test]
|
||||
fn episode_launch_retains_checks_on_failure_and_clears_only_after_spawn() {
|
||||
for modifiers in [
|
||||
KeyModifiers::NONE,
|
||||
KeyModifiers::SUPER,
|
||||
KeyModifiers::CONTROL,
|
||||
] {
|
||||
for modifiers in [KeyModifiers::NONE, KeyModifiers::CONTROL] {
|
||||
let directory = Directory::new();
|
||||
let mut browser = directory.browser(Some("anime"));
|
||||
catalog_results(&mut browser);
|
||||
|
||||
Reference in New Issue
Block a user