diff --git a/assets/js/session/index.js b/assets/js/session/index.js index 8bf076582..aa02c776c 100644 --- a/assets/js/session/index.js +++ b/assets/js/session/index.js @@ -335,8 +335,6 @@ function handleDocumentKeyDown(hook, event) { queueAllCellsEvaluation(hook); } else if (keyBuffer.tryMatch(["e", "s"])) { queueFocusedSectionEvaluation(hook); - } else if (keyBuffer.tryMatch(["e", "j"])) { - queueChildCellsEvaluation(hook); } else if (keyBuffer.tryMatch(["s", "s"])) { toggleSectionsList(hook); } else if (keyBuffer.tryMatch(["s", "u"])) { @@ -640,14 +638,6 @@ function queueFocusedSectionEvaluation(hook) { } } -function queueChildCellsEvaluation(hook) { - if (hook.state.focusedCellId) { - hook.pushEvent("queue_child_cells_evaluation", { - cell_id: hook.state.focusedCellId, - }); - } -} - function cancelFocusedCellEvaluation(hook) { if (hook.state.focusedCellId) { hook.pushEvent("cancel_cell_evaluation", { diff --git a/lib/livebook_web/live/session_live.ex b/lib/livebook_web/live/session_live.ex index e9ec150f3..177fe6b81 100644 --- a/lib/livebook_web/live/session_live.ex +++ b/lib/livebook_web/live/session_live.ex @@ -579,18 +579,6 @@ defmodule LivebookWeb.SessionLive do {:noreply, socket} end - def handle_event("queue_child_cells_evaluation", %{"cell_id" => cell_id}, socket) do - with {:ok, cell, _section} <- - Notebook.fetch_cell_and_section(socket.private.data.notebook, cell_id) do - for {cell, _} <- Notebook.child_cells_with_section(socket.private.data.notebook, cell.id), - is_struct(cell, Cell.Elixir) do - Session.queue_cell_evaluation(socket.assigns.session.pid, cell.id) - end - end - - {:noreply, socket} - end - def handle_event("queue_bound_cells_evaluation", %{"cell_id" => cell_id}, socket) do data = socket.private.data diff --git a/lib/livebook_web/live/session_live/shortcuts_component.ex b/lib/livebook_web/live/session_live/shortcuts_component.ex index b6cb2561a..be87a684b 100644 --- a/lib/livebook_web/live/session_live/shortcuts_component.ex +++ b/lib/livebook_web/live/session_live/shortcuts_component.ex @@ -96,7 +96,6 @@ defmodule LivebookWeb.SessionLive.ShortcutsComponent do %{seq: ["e", "e"], desc: "Evaluate cell"}, %{seq: ["e", "s"], desc: "Evaluate section"}, %{seq: ["e", "a"], desc: "Evaluate all stale/new cells", basic: true}, - %{seq: ["e", "j"], desc: "Evaluate cells below"}, %{seq: ["e", "x"], desc: "Cancel cell evaluation"}, %{seq: ["s", "s"], desc: "Toggle sections panel"}, %{seq: ["s", "u"], desc: "Toggle users panel"},