neo-nie / pynsource

Automatically exported from code.google.com/p/pynsource
0 stars 0 forks source link

'q' and 'e' keychars sometimes not picked up or chars lost #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create two classes
2. select a class, hit 'q'
3. select another class, hit 'e'

What is the expected output? What do you see instead?

expect an association line to be created.
but nothing happens (sometimes),

1. create two classes
2. double click a class
3. edit some method names etc.

What is the expected output? What do you see instead?

expect 'q' and 'e' etc. chars to be entered when typed.  Sometimes those keys 
are swallowed somewhere and cannot be entered as part of a class name or method 
name etc. (sometimes)

NOTE: sometimes q and w and other menu shortcut keys WORK and sometimes they 
DON'T.  Must be some mode thing.

Original issue reported on code.google.com by abu...@gmail.com on 25 Aug 2014 at 11:18

GoogleCodeExporter commented 8 years ago
Diagnostic investigation so far:

pynsource/src/gui/uml_canvas.py

{{{
    def onKeyChar(self, event):
        """
        These are secret keycodes not exposed on the menu
        Normally shortcuts added on the menu work fine.
        """
        print 'onKeyChar', event.GetKeyCode()    <-----
        if event.GetKeyCode() >= 256:
            event.Skip()
            return
}}}

Seems to be very 'mode' related and intermittent.  Perhaps investigate whether 
we are using menu shortcuts keys and are they interfering with key 
interception, or vice versa.

Original comment by abu...@gmail.com on 25 Aug 2014 at 11:23