我无法在我的代码中匹配 @ 的关键代码。我想在keydownhandler中匹配@。我采取了 shift + 2 = @ = 64
itemBox.addKeyDownHandler(new KeyDownHandler() {
@Override
public void onKeyDown(KeyDownEvent event) {
// TODO Auto-generated method stub
if ((int)event.getNativeKeyCode() == 64 )
{
System.out.println("eggheads");
}
}
});