key mapping fails on non-us-kb for calltips
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
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.
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()
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
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Old Bugs - new issues at https://github.com/mhammond/pywin32/issues"
rev d668dc3f1549 breaking pythonwin.exe