#79 Alt-Space doesn't bring up title bar menu

closed
nobody
None
7
2007-10-10
2006-07-17
Oran Dennison
No

When I type Alt-Space to bring up the menu that you
get by clicking the app icon in the upper-left corner
of any running Windows app, nothing happens in
console.exe. I normally use this keyboard shortcut
to minimize or move apps. It works for cmd.exe and
pretty much every other app on my system except for
console.exe which you have to physically click to
bring up the menu. I'm using console.exe because I'd
rather type than click, so this bugs me! :)

Discussion

  • Logged In: YES
    user_id=16767

    Yes, it's a bug in the tabbing framework Console uses. I'll
    see what can be done about it...

     
    • priority: 5 --> 7
     
  • Kirill
    Kirill
    2007-10-06

    Logged In: YES
    user_id=1664805
    Originator: NO

    Marko,

    do you see a problem with the following workaround:
    @@ -301,11 +301,12 @@ LRESULT ConsoleView::OnWindowPosChanged(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM

    LRESULT ConsoleView::OnSysKeyDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
    {
    if ((wParam == VK_SPACE) && (lParam & (0x1 << 29)))
    {
    - return ::DefWindowProc(m_mainFrame, uMsg, wParam, lParam);
    + // send the SC_KEYMENU directly to the main frame, because DefWindowProc does not handle the message correctly
    + return m_mainFrame.SendMessage(WM_SYSCOMMAND, SC_KEYMENU, VK_SPACE);
    }

    return OnConsoleFwdMsg(uMsg, wParam, lParam, bHandled);
    }

    Of course, you also need to specify correct
    MESSAGE_HANDLER(WM_SYSKEYDOWN, OnSysKeyDown)
    in the header.

     
    • status: open --> closed
     
  • Logged In: YES
    user_id=16767
    Originator: NO

    Nope, it works fine :)

    Thanks. There was also a small bug in the .h files: WM_SYSKEYDOWN was mapped to OnConsoleFwdMsg...

    This fix will be available in the next build.