Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion keybind-cheatsheet/panel.luau
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,10 @@ local function renderHeader()
searchRevision += 1
render()
end)
table.insert(children, ui.input({ key = "search-" .. searchRevision, value = query, placeholder = tr("search_placeholder"), controlSize = "sm", width = 300, onChange = searchChanged }))
-- The panel is opened to look something up, so typing goes straight to the
-- search box without clicking it first. Dropped while a description is
-- being edited, so that row's own input keeps the caret.
table.insert(children, ui.input({ key = "search-" .. searchRevision, value = query, placeholder = tr("search_placeholder"), controlSize = "sm", width = 300, onChange = searchChanged, focus = editingId == nil }))
table.insert(children, ui.button({ glyph = "x", width = 26, variant = "ghost", controlSize = "sm", enabled = query ~= "", tooltip = tr("clear"), onClick = clearSearch }))
end
if not loading or #bindings > 0 then
Expand Down
2 changes: 1 addition & 1 deletion keybind-cheatsheet/plugin.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id = "kenn/keybind-cheatsheet"
name = "Keybind Cheatsheet"
version = "0.2.4"
version = "0.2.5"
plugin_api = 9
author = "kenn"
license = "MIT"
Expand Down
Loading