mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-14 19:28:57 +01:00
sim: BL0942 object with controller (sends BL0942 packets); not finished yet; also fix Text edit cursor
This commit is contained in:
@@ -32,6 +32,8 @@ CShape *CText::cloneShape() {
|
||||
CText *r = new CText();
|
||||
r->pos = this->pos;
|
||||
r->txt = this->txt;
|
||||
r->bDeepText = this->bDeepText;
|
||||
r->bAllowNewLine = this->bAllowNewLine;
|
||||
this->cloneShapeTo(r);
|
||||
return r;
|
||||
}
|
||||
@@ -61,7 +63,9 @@ bool CText::processKeyDown(int keyCode) {
|
||||
return true;
|
||||
}
|
||||
if (keyCode == SDLK_RETURN) {
|
||||
appendText("\n");
|
||||
if (bAllowNewLine) {
|
||||
appendText("\n");
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user