[pywin32-bugs] [ pywin32-Bugs-896502 ] key mapping fails on non-us-kb for calltips
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2012-02-29 11:46:06
|
Bugs item #896502, was opened at 2004-02-13 05:42 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=896502&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Norbert Ferchen (nferchen) Assigned to: Nobody/Anonymous (nobody) Summary: key mapping fails on non-us-kb for calltips Initial Comment: 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. ---------------------------------------------------------------------- Comment By: https://www.google.com/accounts () Date: 2012-02-29 03:46 Message: rev d668dc3f1549 breaking pythonwin.exe ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2010-10-27 18:56 Message: 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 ---------------------------------------------------------------------- Comment By: Oleg Noga (oleg_noga) Date: 2005-09-21 07:46 Message: 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() ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=896502&group_id=78018 |