Ticket #5996: Menu_keyboard_fixes.patch

File Menu_keyboard_fixes.patch, 957 bytes (added by Ziusudra, 14 years ago)
  • src/kits/interface/Menu.cpp

     
    372372    // when called on input_server initialization, since it tries
    373373    // to send a synchronous message to itself (input_server is
    374374    // a BApplication)
    375    
     375
    376376    BMenu::sAltAsCommandKey = true;
    377377    key_map* keys = NULL;
    378378    char* chars = NULL;
     
    505505                        BMessenger msgr(Supermenu());
    506506                        msgr.SendMessage(Window()->CurrentMessage());
    507507                    } else
    508                         Supermenu()->_SelectItem(item, false, false);
     508                        _QuitTracking();
    509509                }
    510510            }
    511511            break;
     
    15121512        window->Show();
    15131513
    15141514        if (selectFirstItem)
    1515             _SelectItem(ItemAt(0));
     1515            _SelectItem(ItemAt(0), false);
    15161516
    15171517        window->Unlock();
    15181518    }
     
    16521652        }
    16531653
    16541654        UnlockLooper();
    1655        
     1655
    16561656        if (releasedOnce)
    16571657            _UpdateStateClose(item, location, buttons);
    16581658