lots of functionality

This commit is contained in:
2024-02-12 18:38:40 -06:00
parent 8642b1f73a
commit a59702182f
15 changed files with 1902 additions and 15 deletions

View File

@@ -38,12 +38,12 @@ var (
}
CloseDialogKey = uiKeyInfo{
Key: tcell.KeyEsc,
KeyLabel: "Esc",
KeyLabel: "esc",
KeyDesc: "close the active dialog",
}
SwitchFocusKey = uiKeyInfo{
Key: tcell.KeyTab,
KeyLabel: "Tab",
KeyLabel: "tab",
KeyDesc: "switch between widgets",
}
ArrowUpKey = uiKeyInfo{
@@ -58,17 +58,17 @@ var (
}
ArrowLeftKey = uiKeyInfo{
Key: tcell.KeyLeft,
KeyLabel: "Arrow Left",
KeyLabel: "arrow Left",
KeyDesc: "previous screen",
}
ArrowRightKey = uiKeyInfo{
Key: tcell.KeyRight,
KeyLabel: "Arrow Right",
KeyLabel: "arrow Right",
KeyDesc: "next screen",
}
AppExitKey = uiKeyInfo{
Key: tcell.KeyCtrlC,
KeyLabel: "Ctrl+c",
KeyLabel: "ctrl+c",
KeyDesc: "exit application",
}
HelpScreenKey = uiKeyInfo{
@@ -96,6 +96,11 @@ var (
KeyLabel: "F5",
KeyDesc: "display buildings screen",
}
GroupsScreenKey = uiKeyInfo{
Key: tcell.KeyF6,
KeyLabel: "F6",
KeyDesc: "display groups screen",
}
)
var UIKeyBindings = []uiKeyInfo{
@@ -116,6 +121,7 @@ var UIKeyBindings = []uiKeyInfo{
ShelvesScreenKey,
CategoriesScreenKey,
BuildingsScreenKey,
GroupsScreenKey,
}
type uiKeyInfo struct {