diff --git a/uppsrc/CodeEditor/CodeEditor.cpp b/uppsrc/CodeEditor/CodeEditor.cpp index 213fc3698..8150a7668 100644 --- a/uppsrc/CodeEditor/CodeEditor.cpp +++ b/uppsrc/CodeEditor/CodeEditor.cpp @@ -540,6 +540,7 @@ void CodeEditor::LeftDown(Point p, dword keyflags) { } LineEdit::LeftDown(p, keyflags); WhenLeftDown(); + CloseFindReplace(); } void CodeEditor::Tip::Paint(Draw& w) @@ -745,6 +746,10 @@ bool CodeEditor::Key(dword code, int count) { last_key_time = key_time; NextUndo(); + if(code == replace_key) { + Replace(); + return true; + } switch(code) { case K_CTRL_DELETE: DeleteWord(); diff --git a/uppsrc/CodeEditor/CodeEditor.h b/uppsrc/CodeEditor/CodeEditor.h index 30be1b32d..eb3696d1f 100644 --- a/uppsrc/CodeEditor/CodeEditor.h +++ b/uppsrc/CodeEditor/CodeEditor.h @@ -332,6 +332,10 @@ public: FrameTop