Esempio 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());
    }
  }
Esempio 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());
    }
  }