Documentation ¶
Index ¶
- Constants
- Variables
- func ChangedPromptNotification(guiApp fyne.App)
- func GetAskKeys() []string
- func GetCtrlReviseKeys() []string
- func GetTranslateKeys() []string
- func RegisterHotkeys(guiApp fyne.App, ollamaClient *ollamaApi.Client) chan hook.Event
- func ShowShortcuts(guiApp fyne.App)
- func StartKeyboardListener(guiApp fyne.App, ollamaClient *ollamaApi.Client) bool
- func UpdateDropDownMenus()
- type KeyAction
- type KeyType
Constants ¶
View Source
const ( AskQuestion KeyAction = iota CtrlRevise Translate EmptySelection string = "Not Used" )
Variables ¶
View Source
var ( Throttle = throttle.NewThrottle(1) Speech *htgotts.Speech LastClipboardContent [32]byte AskKey = keyBoardShortcut{ModifierKey1: "alt", Key: "a"} CtrlReviseKey = keyBoardShortcut{ModifierKey1: "alt", Key: "c"} TranslateKey = keyBoardShortcut{ModifierKey1: "alt", Key: "t"} )
Functions ¶
func ChangedPromptNotification ¶
func ChangedPromptNotification(guiApp fyne.App)
func GetAskKeys ¶
func GetAskKeys() []string
func GetCtrlReviseKeys ¶
func GetCtrlReviseKeys() []string
func GetTranslateKeys ¶
func GetTranslateKeys() []string
func RegisterHotkeys ¶
RegisterHotkeys registers the hotkeys for the application TODO: Allow users changes the mappings
func ShowShortcuts ¶
func ShowShortcuts(guiApp fyne.App)
func StartKeyboardListener ¶
func UpdateDropDownMenus ¶
func UpdateDropDownMenus()
Types ¶
Click to show internal directories.
Click to hide internal directories.