Ticket #8595: popup.patch
File popup.patch, 697 bytes (added by , 18 years ago) |
---|
-
gui/PopUpWidget.cpp
193 193 if (item >= 0 && _popUpBoss->_entries[item].name.size() == 0) 194 194 item = -1; 195 195 196 if (item == -1 && !isMouseDown()) 196 if (item == -1 && !isMouseDown()) { 197 setSelection(_popUpBoss->_selectedItem); 197 198 return; 199 } 198 200 199 201 // ...and update the selection accordingly 200 202 setSelection(item); … … 202 204 203 205 void PopUpDialog::handleKeyDown(uint16 ascii, int keycode, int modifiers) { 204 206 if (keycode == 27) { // escape 207 // Don't change the previous selection 208 setResult(-1); 205 209 close(); 206 210 return; 207 211 }