Keep input tooltips to the name and switching shortcut

This commit is contained in:
David Heinemeier Hansson committed 2026-10-09 14:44:27 +02:00
1 parent f0ff594ee3
commit 203654bead
2 files changed
+4 -8

No files matched your search

@@ -120,11 +120,7 @@ function inputLabel(state, fallback) {
function inputTooltip(state, layout, multipleLayouts) {
if (!state || !state.methods || state.methods.length < 2)
return layout + (multipleLayouts ? "" : "\nClick to set up an input language")
var text = state.name + "\nClick to switch input language\nSuper + I to toggle input"
if (state.methods.indexOf("mozc") !== -1)
text += "\nJapanese: type a word, then Space twice for character choices"
if (multipleLayouts) text += "\nRight-click to switch keyboard layout"
return text
return (state.name || layout).replace(/^Keyboard - /, "") + " · Super + I"
}
function showIndicator(layoutLabel, multipleLayouts, multipleInputs) {