=== modified file 'plugins/unityshell/src/unityshell.cpp' --- plugins/unityshell/src/unityshell.cpp 2011-09-30 07:30:20 +0000 +++ plugins/unityshell/src/unityshell.cpp 2011-10-03 11:12:51 +0000 @@ -248,6 +248,7 @@ optionSetKeyboardFocusInitiate(boost::bind(&UnityScreen::setKeyboardFocusKeyInitiate, this, _1, _2, _3)); //optionSetKeyboardFocusTerminate (boost::bind (&UnityScreen::setKeyboardFocusKeyTerminate, this, _1, _2, _3)); optionSetExecuteCommandInitiate(boost::bind(&UnityScreen::executeCommand, this, _1, _2, _3)); + optionSetShowDashInitiate(boost::bind(&UnityScreen::showDash, this, _1, _2, _3)); optionSetPanelFirstMenuInitiate(boost::bind(&UnityScreen::showPanelFirstMenuKeyInitiate, this, _1, _2, _3)); optionSetPanelFirstMenuTerminate(boost::bind(&UnityScreen::showPanelFirstMenuKeyTerminate, this, _1, _2, _3)); optionSetLauncherRevealEdgeInitiate(boost::bind(&UnityScreen::launcherRevealEdgeInitiate, this, _1, _2, _3)); @@ -1167,12 +1168,12 @@ return false; } -void UnityScreen::SendExecuteCommand() +void UnityScreen::SendActivateRequest(std::string const& what) { ubus_server_send_message(ubus_server_get_default(), UBUS_PLACE_ENTRY_ACTIVATE_REQUEST, g_variant_new("(sus)", - "commands.lens", + what.c_str(), 0, "")); } @@ -1181,7 +1182,15 @@ CompAction::State state, CompOption::Vector& options) { - SendExecuteCommand(); + SendActivateRequest("command.lens"); + return false; +} + +bool UnityScreen::showDash(CompAction* action, + CompAction::State state, + CompOption::Vector& options) +{ + SendActivateRequest("home.lens"); return false; } === modified file 'plugins/unityshell/src/unityshell.h' --- plugins/unityshell/src/unityshell.h 2011-09-29 19:07:09 +0000 +++ plugins/unityshell/src/unityshell.h 2011-10-03 10:46:32 +0000 @@ -199,6 +199,7 @@ bool showPanelFirstMenuKeyTerminate(CompAction* action, CompAction::State state, CompOption::Vector& options); bool executeCommand(CompAction* action, CompAction::State state, CompOption::Vector& options); + bool showDash(CompAction* action, CompAction::State state, CompOption::Vector& options); bool setKeyboardFocusKeyInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options); bool launcherRevealEdgeInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options); @@ -243,7 +244,7 @@ private: void initAltTabNextWindow (); - void SendExecuteCommand(); + void SendActivateRequest(std::string const& what); void EnsureSuperKeybindings (); void CreateSuperNewAction(char shortcut, bool use_shift=false, bool use_numpad=false); === modified file 'plugins/unityshell/unityshell.xml.in' --- plugins/unityshell/unityshell.xml.in 2011-09-29 19:07:09 +0000 +++ plugins/unityshell/unityshell.xml.in 2011-10-03 11:14:35 +0000 @@ -327,6 +327,10 @@ +