On Mon, Jul 21, 2008 at 10:48 AM, Ed Leafe <[EMAIL PROTECTED]> wrote:
> On Jul 21, 2008, at 11:47 AM, Nate Lowrie wrote:
>
>> Here is the issue.  evt.controlDown is registering and is set to true.
>> However, it also registers as a key.  So, we get the ASCI value of 17
>> passed as the key that is down.  Then, if you press R or any other key
>> for that matter, wx doesn't register it.  It just records the Control
>> key press.  Not sure what to do about this.
>
>
>        That sounds very odd. How are you supposed to detect ctrl-R, or any
> other key combo, for that matter?

I am not sure, but that is what I am seeing.  This is what I have
onShellKeyDown as:

        def onShellKeyDown(self, evt):
                print evt.controlDown, ord(evt.keyChar)
                if evt.controlDown and evt.keyChar in ("r", "R"):
                        print "is proper key sequence"
                        if not (evt.commandDown or evt.altDown or evt.metaDown):
                                evt.stop()
                                self.historyPop()

I used ord to be sure of what characters I was getting...  Can anyone
else confirm this behavior on Win XP?

Platform: Win
Python Version: 2.5.2 on win32
Dabo Version: Version 0.8.4; Revision 4302
UI Version: 2.8.8.0 on wxMSW


_______________________________________________
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]

Reply via email to