Menu

#81 key mapping fails on non-us-kb for calltips

closed-fixed
nobody
pythonwin (177)
5
2010-10-28
2004-02-13
No

on an german keyboard you will not get the calltip by
pressing the opening bracket, but on pressing the
closing bracket instead.

It seems, that the key mapping doesn't recognise the
keyboard layout. On the german kbd the brackes or on
the keys 8 and 9. By replacing the "Shift-(" by
"Shift-8" - as an workaround - the mapping will work.

Discussion

  • Oleg Noga

    Oleg Noga - 2005-09-21

    Logged In: YES
    user_id=551440

    Same bug with dot character mapping
    pressing dot key allways produces dot character in editor
    but in non-us keyboard locales it is not dot but letter :(
    here is the a patch for pythonwin\pywin\scintilla\view.py
    KeyDotEvent function.
    patch needs ctypes package to work
    http://starship.python.net/crew/theller/ctypes/
    ------------------------------
    def KeyDotEvent(self, event):

    # begin of patch
    try:
    import ctypes
    except ImportError:
    pass
    else:
    if
    (ctypes.windll.user32.GetKeyboardLayout(ctypes.c_int(0))
    & 0xFFFF !=
    0x0409):
    return 1
    # end of patch

    self.SCIAddText('.')
    if self.bAutoCompleteAttributes:
    self._AutoComplete()

     
  • Mark Hammond

    Mark Hammond - 2010-10-28

    After 6 years I've checked a fix in that works for me

    Checking in CHANGES.txt;
    new revision: 1.65; previous revision: 1.64
    Checking in Pythonwin/pywin/default.cfg;
    new revision: 1.11; previous revision: 1.10
    Checking in Pythonwin/pywin/scintilla/bindings.py;
    new revision: 1.10; previous revision: 1.9
    Checking in Pythonwin/pywin/scintilla/config.py;
    new revision: 1.11; previous revision: 1.10
    Checking in Pythonwin/pywin/scintilla/keycodes.py;
    new revision: 1.8; previous revision: 1.7

     
  • Mark Hammond

    Mark Hammond - 2010-10-28
    • status: open --> closed-fixed
     
MongoDB Logo MongoDB