MCPcopy
hub / github.com/gdamore/tcell / KeyTap

Method KeyTap

vt/mock.go:214–214  ·  view source on GitHub ↗

Inject one or more key press and releases. The keys are pressed in the order, and released in reverse order. Thus modifiers should be listed first. This should not be used to simulate typing a sequence (e.g. a word), but if you wanted to test say N-Key rollover you could do that here.

(...Key)

Source from the content-addressed store, hash-verified

212 // to simulate typing a sequence (e.g. a word), but if you wanted to
213 // test say N-Key rollover you could do that here.
214 KeyTap(...Key)
215
216 // Inject a mouse event.
217 MouseEvent(MouseEvent)

Callers 15

TestDemoFunction · 0.95
TestBoxesFunction · 0.95
TestUnicodeFunction · 0.95
TestColorsFunction · 0.95
TestBeepFunction · 0.95
TestStylesFunction · 0.95
TestDemoFunction · 0.95
TestHelloFunction · 0.95
TestKeyWin32Function · 0.95
TestUsAltGrFunction · 0.95
TestDeadKeysFunction · 0.95
TestUsCapsLockFunction · 0.95

Implementers 1

mockTermvt/mock.go

Calls

no outgoing calls

Tested by 15

TestDemoFunction · 0.76
TestBoxesFunction · 0.76
TestUnicodeFunction · 0.76
TestColorsFunction · 0.76
TestBeepFunction · 0.76
TestStylesFunction · 0.76
TestDemoFunction · 0.76
TestHelloFunction · 0.76
TestKeyWin32Function · 0.76
TestUsAltGrFunction · 0.76
TestDeadKeysFunction · 0.76
TestUsCapsLockFunction · 0.76