Virtual key mapping

Vadim Zeitlin vadim at wxwidgets.org
Tue May 6 16:51:41 PDT 2008


On Tue, 6 May 2008 15:39:04 -0700 (PDT) Marcin 'Malcom' Malich <malcompl at gmail.com> wrote:

MMM> I added handle to wxEVT_CONTEXT_MENU in app.
MMM> 
MMM> mouse button right up:
MMM> - OnMouseRightUp
MMM> - OnContextMenu with cursor position (called only if event.Skip() on
MMM> OnMouseRightUp)
MMM> 
MMM> pressed VK_APPS:
MMM> - OnContextMenu with (-1, -1) position
MMM> - OnMouseRightUp (probably called by mouse right up event generated in
MMM> WM_KEY* for VK_APPS key)

 Yes, this behaviour is expected. Or did I miss something?

MMM> So, in my opinion, we should delete generate mouse event code from
MMM> WM_KEY* (or sign to deprecate/compatible2.8 for existing code and
MMM> delete in wx3.0),

 I don't really see any reason to do this, what's the harm in keeping it?
This change would break the existing code silently (you can't ensure that
the code using this feature would generate compilation warnings or errors)
and this is the worst kind of breakage possible so there should be really a
very good reason to do it.

MMM> mapping VK_APPS to VK_MENU

 If you can write and test a (presumably very simple) patch needed to do
this, I'd be glad to apply it.

 TIA,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/



More information about the wx-users mailing list