Cycle keyboard layouts alongside composition engines

This commit is contained in:
David Heinemeier Hansson committed 2026-10-09 16:57:31 +02:00
1 parent 99f32458d6
commit 639cf3ee5e
6 files changed
+76 -19

No files matched your search

@@ -120,7 +120,8 @@ function inputLabel(state, fallback) {
function inputTooltip(state, layout, multipleLayouts) {
if (!state || !state.methods || state.methods.length < 2)
return layout + (multipleLayouts ? " · Super + I" : "")
return (state.name || layout).replace(/^Keyboard - /, "") + " · Super + I"
var name = state.current && state.current.indexOf("keyboard-") === 0 ? layout : (state.name || layout)
return name.replace(/^Keyboard - /, "") + " · Super + I"
}
function showIndicator(layoutLabel, multipleLayouts, multipleInputs) {