From 93a9f8194f07168422059915f1f28773b9d4d1c4 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 17 Feb 2022 10:13:11 -0800 Subject: [PATCH 1/2] Add events listen test html --- examples/index.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 examples/index.html diff --git a/examples/index.html b/examples/index.html new file mode 100644 index 0000000..c78a17c --- /dev/null +++ b/examples/index.html @@ -0,0 +1,37 @@ +

Type and check the console

+ + \ No newline at end of file From e1c5590f306ba706df54cd1aad97382f8e29c6fa Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 17 Feb 2022 10:15:49 -0800 Subject: [PATCH 2/2] Add capital letter key define --- key.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/key.go b/key.go index 754ca96..f99c3e8 100644 --- a/key.go +++ b/key.go @@ -59,6 +59,33 @@ const ( KeyY = "y" KeyZ = "z" // + CapA = "A" + CapB = "B" + CapC = "C" + CapD = "D" + CapE = "E" + CapF = "F" + CapG = "G" + CapH = "H" + CapI = "I" + CapJ = "J" + CapK = "K" + CapL = "L" + CapM = "M" + CapN = "N" + CapO = "O" + CapP = "P" + CapQ = "Q" + CapR = "R" + CapS = "S" + CapT = "T" + CapU = "U" + CapV = "V" + CapW = "W" + CapX = "X" + CapY = "Y" + CapZ = "Z" + // Key0 = "0" Key1 = "1" Key2 = "2"