mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 09:56:30 +00:00
4308849811
These commands allow greater control over editable ListWidgets, although the save dialog's list is currently the only one. kListItemSingleClickedCmd allows clients to respond to selection changes based on the method used (mouse vs keyboard) and allows responding to clicking on an already selected item. In the next commit, this will fix multiple save issues. kListItemEditModeStartedCmd allows clients to initialize edit mode consistently. The save dialog has been doing custom initialization after calling startEditMode, but this is incorrect because ListWidget calls startEditMode in response to Enter, so the initialization is skipped.