On Monday, October 25, 2010 09:04:31 pm Paul McNett wrote: > On 10/25/10 8:58 PM, John Fabiani wrote: > > On Monday, October 25, 2010 08:14:03 pm Paul McNett wrote: > >> On 10/25/10 8:09 PM, Ed Leafe wrote: > >>> On Oct 25, 2010, at 10:59 PM, Paul McNett wrote: > >>>> bindKey() doesn't seem to work very consistently across platforms, > >>>> even with unshifted characters. > >>>> > >>> Windows uses the RawKeyCode, while Mac/Nix uses KeyCode. There are a > >>> few other little quirks, but that's the main one. > >>> > >>>> But forgetting that for the moment, I think we need an overridden > >>>> bindKey() at the dTextBoxMixin level that actually binds to EVT_CHAR > >>>> and checks the key bindings table and if found, calls the function. > >>>> > >>> Something like that would probably work, but I was hoping to be able > >>> to figure out if it was possible to solve generically. > >> > >> Yeah, it would be good to handle in KEY_DOWN which all windows can > >> receive. We'd have to somehow get a mapping of the current keyboard's > >> layout against the key codes and modifier keys. Should be doable but I > >> don't have any specifics. > >> > >> Paul > > > > And what happens when the special keys are pressed on all the different > > keyboard out there! > > We are talking about mapping a character. That character would be able to > be typed using one unique key-combo on any given keyboard. > > Paul
Yes I understand that you are attempting to deal with the '@' char in this case. But Ed suggested he wanted a generic way to deal with any char. Well what happens when you have a guy trying to map a char that uses the special buttons on these do all keyboards? For example I have a logitech keyboard that I use on linux and I have mapped two of the keys to do something special under KDE. The keys do not match anything as far as I know. Johnf _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[email protected]
