Ejemplo n.º 1
0
  public void onKeyDown(NativeKeyDownEvent evt) {
    if (evt.isCanceled()) return;

    keyTimer_.schedule(3000);
    if (handleKeyDown(evt.getEvent())) {
      evt.cancel();
      events_.fireEvent(new RStudioCommandExecutedFromShortcutEvent());
    }
  }
Ejemplo n.º 2
0
  public void onKeyDown(NativeKeyDownEvent evt) {
    if (evt.isCanceled()) return;

    keyTimer_.schedule(3000);
    if (handleKeyDown(evt.getEvent())) {
      evt.cancel();
      resetKeyBuffer();
    } else {
      updateKeyBuffer(evt.getEvent());
    }
  }