Search
Keys Enumeration
See Also
 






Defines keyboard key codes.

Namespace: MindFusion.Keyboard
File: Keys.js

 Syntax

JavaScript  Copy Code

// enum
Keys = {}

 Members

  Member name Description

A

The A key.

Add

The + key.

Alt

The alt modifier key.

B

The B key.

C

The C key.

CapsLock

The caps lock key.

Control

The ctrl modifier key.

D

The D key.

D0

The 0 key.

D1

The 1 key.

D2

The 2 key.

D3

The 3 key.

D4

The 4 key.

D5

The 5 key.

D6

The 6 key.

D7

The 7 key.

D8

The 8 key.

D9

The 9 key.

Delete

The delete key.

Divide

The / key.

Down

The down arrow key.

E

The E key.

F

The F key.

F1

The F1 key.

F10

The F10 key.

F11

The F11 key.

F12

The F12 key.

F2

The F2 key.

F3

The F3 key.

F4

The F4 key.

F5

The F5 key.

F6

The F6 key.

F7

The F7 key.

F8

The F8 key.

F9

The F9 key.

G

The G key.

H

The H key.

I

The I key.

Insert

The insert key.

J

The J key.

K

The K key.

L

The L key.

Left

The left arrow key.

M

The M key.

Multiply

The * key.

N

The N key.

NumLock

The num lock key.

O

The O key.

P

The P key.

Q

The Q key.

R

The R key.

Right

The right arrow key.

S

The S key.

Shift

The shift modifier key.

Subtract

The - key.

T

The T key.

U

The U key.

Up

The up arrow key.

V

The V key.

W

The W key.

X

The X key.

Y

The Y key.

Z

The Z key.

 Remarks

Members of the Keys enumeration can be provided as parameters to the sendKey method.

 Example

The following code send the "Alt" modifier key as input to the focused element of the application:

JavaScript  Copy Code
var vk = VirtualKeyboard.create(
  document.getElementById("keyboard"));
vk.sendKey(Keys.Alt);

 See Also