Lines Matching defs:shortcut

949 			// Used by the minimize shortcut
955 // Used by the zoom shortcut
1687 Shortcut* shortcut = new(std::nothrow) Shortcut(key, modifiers, item);
1688 if (shortcut == NULL)
1691 // removes the shortcut if it already exists!
1694 fShortcuts.AddItem(shortcut);
1712 Shortcut* shortcut = new(std::nothrow) Shortcut(key, modifiers, message,
1714 if (shortcut == NULL)
1717 // removes the shortcut if it already exists!
1720 fShortcuts.AddItem(shortcut);
1734 Shortcut* shortcut = _FindShortcut(key, modifiers);
1735 if (shortcut != NULL) {
1736 fShortcuts.RemoveItem(shortcut);
1737 delete shortcut;
1739 // the quit shortcut is a fake shortcut
2768 // shortcut manually, if a different behaviour is wanted
3613 This includes shortcut evaluation, keyboard navigation, etc.
3665 message.AddBool("shortcut", true);
3701 // the shortcut mechanism doesn't allow handlers outside the window
3704 message.AddBool("shortcut", true);
3725 // a shortcut for the given key.
3728 Shortcut* shortcut = _FindShortcut(key, modifiers);
3729 if (shortcut != NULL) {
3736 if (shortcut->MenuItem() != NULL) {
3737 BMenu* menu = shortcut->MenuItem()->Menu();
3739 MenuPrivate(menu).InvokeItem(shortcut->MenuItem(), true);
3741 BHandler* target = shortcut->Target();
3745 if (shortcut->Message() != NULL) {
3746 BMessage message(*shortcut->Message());
3750 if (message.ReplaceBool("shortcut", true) != B_OK)
3751 message.AddBool("shortcut", true);
3889 Shortcut* shortcut = (Shortcut*)fShortcuts.ItemAt(index);
3891 if (shortcut->Matches(key, modifiers))
3892 return shortcut;