public void onKeyDown(NativeKeyDownEvent evt) { if (evt.isCanceled()) return; keyTimer_.schedule(3000); if (handleKeyDown(evt.getEvent())) { evt.cancel(); events_.fireEvent(new RStudioCommandExecutedFromShortcutEvent()); } }
public void onKeyDown(NativeKeyDownEvent evt) { if (evt.isCanceled()) return; keyTimer_.schedule(3000); if (handleKeyDown(evt.getEvent())) { evt.cancel(); resetKeyBuffer(); } else { updateKeyBuffer(evt.getEvent()); } }