Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

docs: Fix tab-switcher keybindings (#65105)

Sanisa Parag Patrikarbadfb8d31f2a
diff --git a/docs/theme/plugins.js b/docs/theme/plugins.js
index a4d21adaa23..a03b4c7cd25 100644
--- a/docs/theme/plugins.js
+++ b/docs/theme/plugins.js
@@ -30,7 +30,9 @@ function updateKeybindings() {
const isMac = os === "Mac" || os === "iOS";
function processKeybinding(element) {
- const [macKeybinding, linuxKeybinding] = element.textContent.split("|");
+ const [macKeybinding, linuxKeybinding = macKeybinding] =
+ element.textContent.split("|");
+
element.textContent = isMac ? macKeybinding : linuxKeybinding;
element.classList.add("keybinding");
}