Documentation ¶
Overview ¶
Package keyboard is used for a key press simulated in Windows, Linux and Mac https://github.com/micmonay/keybd_event
Index ¶
- Variables
- func ExampleNewKeyBonding()
- type KeyBonding
- func (k *KeyBonding) AddKey(key int)
- func (k *KeyBonding) Clear()
- func (k *KeyBonding) HasALT(b bool)
- func (k *KeyBonding) HasALTGR(b bool)
- func (k *KeyBonding) HasCTRL(b bool)
- func (k *KeyBonding) HasCTRLR(b bool)
- func (k *KeyBonding) HasSHIFT(b bool)
- func (k *KeyBonding) HasSHIFTR(b bool)
- func (k *KeyBonding) HasSuper(b bool)
- func (k *KeyBonding) Launching() error
- func (k *KeyBonding) Press() error
- func (k *KeyBonding) Release() error
- func (k *KeyBonding) SetKeys(keys ...int)
Constants ¶
This section is empty.
Variables ¶
View Source
var VirtualKey = map[string]int{}/* 254 elements not displayed */
VirtualKey - Used to pass integer value of key keyboard.VirtualKey["VK_P"]
View Source
var X11 = true
Functions ¶
func ExampleNewKeyBonding ¶
func ExampleNewKeyBonding()
Types ¶
type KeyBonding ¶
type KeyBonding struct {
// contains filtered or unexported fields
}
KeyBonding type for keyboard
func NewKeyBonding ¶
func NewKeyBonding() (KeyBonding, error)
NewKeyBonding Use for create struct KeyBounding
func (*KeyBonding) HasCTRLR ¶
func (k *KeyBonding) HasCTRLR(b bool)
HasCTRLR If key CTRLR pressed
This is currently not supported on macOS
func (*KeyBonding) HasSHIFTR ¶
func (k *KeyBonding) HasSHIFTR(b bool)
HasSHIFTR If key SHIFTR pressed
This is currently not supported on macOS
func (*KeyBonding) Launching ¶
func (k *KeyBonding) Launching() error
Launching will Press() the keys and then Release() it automatically
func (*KeyBonding) Press ¶
func (k *KeyBonding) Press() error
Press with press the keys, Release() should be used after it.
func (*KeyBonding) Release ¶
func (k *KeyBonding) Release() error
Release will release the keys, This should be used after Press()
Click to show internal directories.
Click to hide internal directories.