W3cubDocs

/Angular

TestKey

An enum of non-text keys that can be used with the sendKeys method.

API

enum TestKey {
  BACKSPACE: TestKey.BACKSPACE;
  TAB: TestKey.TAB;
  ENTER: TestKey.ENTER;
  SHIFT: TestKey.SHIFT;
  CONTROL: TestKey.CONTROL;
  ALT: TestKey.ALT;
  ESCAPE: TestKey.ESCAPE;
  PAGE_UP: TestKey.PAGE_UP;
  PAGE_DOWN: TestKey.PAGE_DOWN;
  END: TestKey.END;
  HOME: TestKey.HOME;
  LEFT_ARROW: TestKey.LEFT_ARROW;
  UP_ARROW: TestKey.UP_ARROW;
  RIGHT_ARROW: TestKey.RIGHT_ARROW;
  DOWN_ARROW: TestKey.DOWN_ARROW;
  INSERT: TestKey.INSERT;
  DELETE: TestKey.DELETE;
  F1: TestKey.F1;
  F2: TestKey.F2;
  F3: TestKey.F3;
  F4: TestKey.F4;
  F5: TestKey.F5;
  F6: TestKey.F6;
  F7: TestKey.F7;
  F8: TestKey.F8;
  F9: TestKey.F9;
  F10: TestKey.F10;
  F11: TestKey.F11;
  F12: TestKey.F12;
  META: TestKey.META;
  COMMA: TestKey.COMMA;
}

BACKSPACE

TAB

ENTER

SHIFT

CONTROL

ALT

ESCAPE

PAGE_UP

PAGE_DOWN

END

HOME

LEFT_ARROW

UP_ARROW

RIGHT_ARROW

DOWN_ARROW

INSERT

DELETE

F1

F2

F3

F4

F5

F6

F7

F8

F9

F10

F11

F12

META

COMMA

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/cdk/testing/TestKey