Ticket #8712: delete game with del key.patch

File delete game with del key.patch, 1017 bytes (added by bluegr, 17 years ago)

Delete a game's configuration with the del key

  • ListWidget.cpp

     
    267267                case Common::KEYCODE_END:
    268268                        _selectedItem = _list.size() - 1;
    269269                        break;
     270                case Common::KEYCODE_DELETE:
     271                        sendCommand(kListRemoveGameCmd, _selectedItem);
     272                        break;
    270273                default:
    271274                        handled = false;
    272275                }
  • ListWidget.h

     
    4242enum {
    4343        kListItemDoubleClickedCmd       = 'LIdb',       // double click on item - 'data' will be item index
    4444        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
    4647};
    4748
    4849/* ListWidget */