Beispiel #1
0
      @Override
      public Boolean dispatch(@NotNull KeyEvent e, @NotNull Context context) {
        if (myWrapper == null || myTypeAheadDone.isProcessed()) return null;

        myEvents.addAll(context.getQueue());
        context.getQueue().clear();

        if (isToDispatchToDialogNow(e)) {
          return false;
        } else {
          myEvents.add(e);
          return true;
        }
      }
Beispiel #2
0
 private void flushEvents() {
   if (myWrapper.isToDispatchTypeAhead() && myContextOnFinish != null) {
     myContextOnFinish.dispatch(myEvents);
   }
 }