MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / isCharacterKeyEvent

Function isCharacterKeyEvent

frontend/util/keyutil.ts:134–139  ·  view source on GitHub ↗
(event: WaveKeyboardEvent)

Source from the content-addressed store, hash-verified

132}
133
134function isCharacterKeyEvent(event: WaveKeyboardEvent): boolean {
135 if (event.alt || event.meta || event.control) {
136 return false;
137 }
138 return util.countGraphemes(event.key) == 1;
139}
140
141const inputKeyMap = new Map<string, boolean>([
142 ["Backspace", true],

Callers 2

DirectoryPreviewFunction · 0.90
isInputEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected