Skip to content

trueaniki/go-parse-hotkeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Parse Hotkeys

A library to parse hotkeys from a string with given delimeter and return hotkeys in format of golang.design/x/hotkey

Usage

hotkey := parsehotkeys.Parse("Ctrl+Shift+A", "+")
hotkey = parsehotkeys.Parse("CTRL OPTION A", " ")
hotkey = parsehotkeys.Parse("ctrl&alt&a", "&")

Then you can use according to golang.design/x/hotkey docs

hotkey.Register()

Full list of keys string representation is available at map.go

About

Parse hotkeys from strings

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages