Ticket #4595: list-focus.patch
File list-focus.patch, 901 bytes (added by , 15 years ago) |
---|
-
gui/ListWidget.cpp
404 404 return true; 405 405 } 406 406 407 void ListWidget::receivedFocusWidget() { 408 // Redraw the widget so the selection color will change 409 draw(); 410 } 411 407 412 void ListWidget::lostFocusWidget() { 408 // If we lo ose focus, we simply forget the user changes413 // If we lose focus, we simply forget the user changes 409 414 _editMode = false; 410 415 g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false); 411 416 drawCaret(true); -
gui/ListWidget.h
145 145 146 146 Common::Rect getEditRect() const; 147 147 148 void receivedFocusWidget(); 148 149 void lostFocusWidget(); 149 150 void scrollToCurrent(); 150 151