(svn r24772) -Codechange: Call Window::OnEditboxChanged only when the content changes, not when only moving the cursor.
This commit is contained in:
@@ -2269,9 +2269,14 @@ EventState Window::HandleEditBoxKey(int wid, uint16 key, uint16 keycode)
|
||||
|
||||
switch (query->HandleEditBoxKey(this, wid, key, keycode, state)) {
|
||||
case HEBR_EDITING:
|
||||
this->SetWidgetDirty(wid);
|
||||
this->OnEditboxChanged(wid);
|
||||
break;
|
||||
|
||||
case HEBR_CURSOR:
|
||||
this->SetWidgetDirty(wid);
|
||||
break;
|
||||
|
||||
case HEBR_CONFIRM:
|
||||
if (query->ok_button >= 0) {
|
||||
this->OnClick(Point(), query->ok_button, 1);
|
||||
|
Reference in New Issue
Block a user