User forums > Using Code::Blocks

Keyboard shortcuts disabled for alternate layouts

<< < (4/6) > >>

oBFusCATed:
OK, I'll try to log the issue on your behalf...

oBFusCATed:
Ticket posted https://trac.wxwidgets.org/ticket/18370

hidefromkgb:
Heads up, I`ve got news!

This is where the error seems to happen:


--- Code: (cpp) ---int  ScintillaWX::DoKeyDown(const wxKeyEvent& evt, bool* consumed)
{
    int key = evt.GetKeyCode();
    if (key == WXK_NONE) {
        // This is a Unicode character not representable in Latin-1 or some key
        // without key code at all (e.g. dead key or VK_PROCESSKEY under MSW).
        if ( consumed )
            *consumed = false;
        return 0;
    }

    ...
--- End code ---

WxWidgets Scintilla implementation processes shortcuts not by the keyboard scancode as it needs to be, but by the actual character typed!
Do you guys know how to retrieve scancodes from a wxKeyEvent ?

hidefromkgb:
Update: found it! It`s called wxKeyEvent::GetRawKeyCode(), but its results are platform dependent. Okay that`s fine, I`ve already collected the scancode tables for Windows, Linux and MacOS =)

oBFusCATed:
Please post any of these in the wx's trac...
Here they would get lost...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version