Ticket #8712: delete game with del key.patch
File delete game with del key.patch, 1017 bytes (added by , 17 years ago) |
---|
-
ListWidget.cpp
267 267 case Common::KEYCODE_END: 268 268 _selectedItem = _list.size() - 1; 269 269 break; 270 case Common::KEYCODE_DELETE: 271 sendCommand(kListRemoveGameCmd, _selectedItem); 272 break; 270 273 default: 271 274 handled = false; 272 275 } -
ListWidget.h
42 42 enum { 43 43 kListItemDoubleClickedCmd = 'LIdb', // double click on item - 'data' will be item index 44 44 kListItemActivatedCmd = 'LIac', // item activated by return/enter - 'data' will be item index 45 kListSelectionChangedCmd = 'Lsch' // selection changed - 'data' will be item index 45 kListSelectionChangedCmd = 'Lsch', // selection changed - 'data' will be item index 46 kListRemoveGameCmd = 'REMG' // delete key pressed 46 47 }; 47 48 48 49 /* ListWidget */