--- nono/wx/wxmainview.h 2026/04/29 17:04:45 1.1.1.7 +++ nono/wx/wxmainview.h 2026/04/29 17:04:53 1.1.1.8 @@ -32,11 +32,13 @@ class WXMainView // アクティベートイベント void OnActivate(wxActivateEvent& event); + // キー入力イベント (WXSoftKeyPanel からも呼ばれる) + void OnKeyDown(wxKeyEvent& event); + void OnKeyUp(wxKeyEvent& event); + private: void OnTimer(wxTimerEvent& event); void OnPaint(wxPaintEvent& event); - void OnKeyDown(wxKeyEvent& event); - void OnKeyUp(wxKeyEvent& event); void OnMouse(wxMouseEvent& event); // 裏バッファ。 @@ -54,11 +56,7 @@ class WXMainView // 共通キーコードを取得する int GetKeyCode(wxKeyEvent& event); -#if defined(__WXGTK__) - static const int keycode_table[0xd4]; -#elif defined(__WXOSX__) - static const int keycode_table[0x80]; -#endif + static const int keycode_table[0x190]; // マウスモード (キャプチャしていれば true) bool mousemode {};