keyboardevent

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented    = errors.New("Browser not implemented KeyboardEvent")
	ErrNotAKeyboardEvent = errors.New("Object is not a KeyboardEvent")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the KeyboardEvent interface

Types

type KeyboardEvent

type KeyboardEvent struct {
	event.Event
}

KeyboardEvent KeyboardEvent struct

func New

func New(typeK string, opt ...map[string]interface{}) (KeyboardEvent, error)

New Create a KeyboardEvent

func NewFromJSObject

func NewFromJSObject(obj js.Value) (KeyboardEvent, error)

func (KeyboardEvent) AltKey

func (k KeyboardEvent) AltKey() (bool, error)

func (KeyboardEvent) Code

func (k KeyboardEvent) Code() (string, error)

func (KeyboardEvent) CtrlKey

func (k KeyboardEvent) CtrlKey() (bool, error)

func (KeyboardEvent) IsComposing

func (k KeyboardEvent) IsComposing() (bool, error)

func (KeyboardEvent) Key

func (k KeyboardEvent) Key() (string, error)

func (KeyboardEvent) KeyboardEvent_

func (k KeyboardEvent) KeyboardEvent_() KeyboardEvent

func (KeyboardEvent) Location

func (k KeyboardEvent) Location() (int64, error)

func (KeyboardEvent) MetaKey

func (k KeyboardEvent) MetaKey() (bool, error)

func (KeyboardEvent) Repeat

func (k KeyboardEvent) Repeat() (bool, error)

func (KeyboardEvent) ShiftKey

func (k KeyboardEvent) ShiftKey() (bool, error)

type KeyboardEventFrom

type KeyboardEventFrom interface {
	KeyboardEvent_() KeyboardEvent
}

Jump to

Keyboard shortcuts

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