lots of functionality
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user