commit | 7d410aca31ed22a2af4fd2e266515a60cc457f3d | [log] [tgz] |
---|---|---|
author | Zack Goldberg <zsg@google.com> | Tue Sep 19 11:25:59 2017 -0400 |
committer | Goktug Gokdogan <goktug@google.com> | Fri Oct 06 00:29:57 2017 +0000 |
tree | 011a995380842e15c7b8531c28d07b24ba95906c | |
parent | c731707993dd60966bc7994895db58b40f50e446 [diff] |
Add keycode constants for open square bracket, [, and close square bracket, ]. Change-Id: I9f865bdd42e617e7e776598434a78234ad3862cc Review-Link: https://gwt-review.googlesource.com/#/c/19360/
diff --git a/user/src/com/google/gwt/event/dom/client/KeyCodes.java b/user/src/com/google/gwt/event/dom/client/KeyCodes.java index e6881ef..826ac36 100644 --- a/user/src/com/google/gwt/event/dom/client/KeyCodes.java +++ b/user/src/com/google/gwt/event/dom/client/KeyCodes.java
@@ -437,6 +437,16 @@ public static final int KEY_WIN_IME = 229; /** + * Key code for open square bracket, [. + */ + public static final int KEY_OPEN_BRACKET = 219; + + /** + * Key code for close square bracket, ]. + */ + public static final int KEY_CLOSE_BRACKET = 221; + + /** * Determines if a key code is an arrow key. */ public static boolean isArrowKey(int code) {