mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-24 14:22:40 -06:00
ide: refining new Find&Replace
git-svn-id: svn://ultimatepp.org/upp/trunk@7478 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
a161a8a065
commit
5df53f2cd4
9 changed files with 61 additions and 22 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue