editor prevent rapid input