Ticket #9958: shortcuts.patch

File shortcuts.patch, 1.1 KB (added by jessicah, 10 years ago)

Makes Shortcuts work, but why, I don't know

  • src/add-ons/input_server/filters/shortcut_catcher/KeyCommandMap.cpp

    diff --git a/src/add-ons/input_server/filters/shortcut_catcher/KeyCommandMap.cpp b/src/add-ons/input_server/filters/shortcut_catcher/KeyCommandMap.cpp
    index f1302a2..a5f5ae2 100644
    a b KeyCommandMap::MessageReceived(BMessage* msg)  
    255255                    if (msg.FindInt32("key", (int32*) &key) == B_OK
    256256                        && msg.FindMessage("act", &actMsg) == B_OK
    257257                        && msg.FindMessage("modtester", &testerMsg) == B_OK) {
    258                        
     258
    259259                        // Leave handling of add-ons shortcuts to Tracker
    260260                        BString command;
    261261                        if (msg.FindString("command", &command) == B_OK) {
    KeyCommandMap::MessageReceived(BMessage* msg)  
    273273                                if (command.FindFirst(path.Path()) != B_ERROR)
    274274                                    continue;
    275275                            }
    276                             if (find_directory(B_USER_ADDONS_DIRECTORY, &path)
    277                                     == B_OK) {
    278                                 path.Append("Tracker/");
    279                                 if (command.FindFirst(path.Path()) != B_ERROR)
    280                                     continue;
    281                             }
    282276                            if (find_directory(
    283277                                    B_USER_NONPACKAGED_ADDONS_DIRECTORY, &path)
    284278                                    == B_OK) {