- Timestamp:
- Dec 6, 2018 8:02:41 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserHandlerKeyboard.cpp
r73600 r76001 316 316 case Qt::Key_Enter: 317 317 { 318 /* Activate item: */ 319 model()->activateMachineItem(); 320 /* And filter out that event: */ 321 return true; 318 /* If this item is of group or machine type: */ 319 if ( model()->focusItem()->type() == UIChooserItemType_Group 320 || model()->focusItem()->type() == UIChooserItemType_Machine) 321 { 322 /* Activate item: */ 323 model()->activateMachineItem(); 324 /* And filter out that event: */ 325 return true; 326 } 327 /* Pass event to other items: */ 328 return false; 322 329 } 323 330 case Qt::Key_Space:
Note:
See TracChangeset
for help on using the changeset viewer.