diff --git a/core/textinput/src/textinput/Editor.cpp b/core/textinput/src/textinput/Editor.cpp index 7fdadbb1a1434..505fb5f2966b6 100644 --- a/core/textinput/src/textinput/Editor.cpp +++ b/core/textinput/src/textinput/Editor.cpp @@ -152,7 +152,6 @@ namespace textinput { // Stop incremental history search, leaving text at the // history line currently selected. if (fMode == kInputMode) return; - fContext->GetKeyBinding()->EnableEscCmd(false); SetEditorPrompt(Text()); DisplayR.ExtendPromptUpdate(Range::kUpdateEditorPrompt); fMode = kInputMode; @@ -461,7 +460,6 @@ namespace textinput { fSearch.clear(); fMode = (M == kCmdReverseSearch ? kHistRevSearchMode : kHistFwdSearchMode); SetHistSearchModePrompt(R.fDisplay); - fContext->GetKeyBinding()->EnableEscCmd(true); if (UpdateHistSearch(R)) return kPRSuccess; return kPRError; case kCmdHistReplay: