shortcuts

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

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

func RegisterHotkeys(guiApp fyne.App, ollamaClient *ollamaApi.Client) chan hook.Event

RegisterHotkeys registers the hotkeys for the application TODO: Allow users changes the mappings

func ShowShortcuts

func ShowShortcuts(guiApp fyne.App)

func StartKeyboardListener

func StartKeyboardListener(guiApp fyne.App, ollamaClient *ollamaApi.Client) bool

func UpdateDropDownMenus

func UpdateDropDownMenus()

Types

type KeyAction

type KeyAction int

type KeyType

type KeyType int
const (
	ModifierKey1 KeyType = iota
	ModifierKey2
	NormalKey
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL