|
@@ -656,19 +656,20 @@ CFocusable::~CFocusable()
|
|
|
|
|
|
|
|
focusables -= this;
|
|
focusables -= this;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
void CFocusable::giveFocus()
|
|
void CFocusable::giveFocus()
|
|
|
{
|
|
{
|
|
|
|
|
+ focus = true;
|
|
|
|
|
+ focusGot();
|
|
|
|
|
+ redraw();
|
|
|
|
|
+
|
|
|
if(inputWithFocus)
|
|
if(inputWithFocus)
|
|
|
{
|
|
{
|
|
|
inputWithFocus->focus = false;
|
|
inputWithFocus->focus = false;
|
|
|
- inputWithFocus->focusLost();
|
|
|
|
|
inputWithFocus->redraw();
|
|
inputWithFocus->redraw();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- focus = true;
|
|
|
|
|
inputWithFocus = this;
|
|
inputWithFocus = this;
|
|
|
- focusGot();
|
|
|
|
|
- redraw();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void CFocusable::moveFocus()
|
|
void CFocusable::moveFocus()
|