@Override
        protected InputMethodRequests getDelegate() {
          if (searchFieldShown) {
            return mySearchField.getTextEditor().getInputMethodRequests();
          } else {
            return null;
          }
        }
@Override
        protected InputMethodRequests getDelegate()