fix the shortcuts affecting search input element bug