Skip to content

Commit 3018692

Browse files
committed
docs(web): update function comment for preprocessKeyboardEvent
1 parent e5184ee commit 3018692

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

web/src/app/browser/src/hardwareEventKeyboard.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ export function _GetEventKeyCode(e: KeyboardEvent) {
3838
// Keeping this as a separate function affords us the opportunity to unit-test the method more simply.
3939

4040
/**
41-
* Function _GetKeyEventProperties
42-
* Scope Private
43-
* @param {Event} e Event object
44-
* @return {Object.<string,*>} KMW keyboard event object:
45-
* Description Get object with target element, key code, shift state, virtual key state
46-
* Lcode=keyCode
47-
* Lmodifiers=shiftState
48-
* LisVirtualKeyCode e.g. ctrl/alt key
49-
* LisVirtualKey e.g. Virtual key or non-keypress event
41+
* Function preprocessKeyboardEvent
42+
* @param {Event} e Event object
43+
* @param {KeyboardState} keyboardState Keyboard state object
44+
* @param {DeviceSpec} device Device object
45+
* @return {KeyEvent} KMW keyboard event object:
46+
*
47+
* Description Returns the preprocessed KeyEvent object.
5048
*/
5149
export function preprocessKeyboardEvent(e: KeyboardEvent, keyboardState: KeyboardState, device: DeviceSpec): KeyEvent {
5250
if(e.cancelBubble === true) {

0 commit comments

Comments
 (0)