mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
RichEdit: Fixed issue of changing format after Enter
git-svn-id: svn://ultimatepp.org/upp/trunk@7740 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e1e80b30e8
commit
debfea2072
1 changed files with 12 additions and 8 deletions
|
|
@ -63,14 +63,18 @@ bool RichEdit::Key(dword key, int count)
|
|||
case K_SHIFT_CTRL_Z:
|
||||
Redo();
|
||||
return true;
|
||||
case K_ENTER:
|
||||
if(singleline)
|
||||
return false;
|
||||
if(!RemoveSelection() && InsertLineSpecial())
|
||||
return true;
|
||||
InsertLine();
|
||||
ShowFormat();
|
||||
FinishNF();
|
||||
case K_ENTER: {
|
||||
if(singleline)
|
||||
return false;
|
||||
if(!RemoveSelection() && InsertLineSpecial())
|
||||
return true;
|
||||
|
||||
RichText::FormatInfo f = formatinfo;
|
||||
InsertLine();
|
||||
formatinfo = f;
|
||||
ShowFormat();
|
||||
FinishNF();
|
||||
}
|
||||
return true;
|
||||
case K_CTRL_ENTER:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue