SORRY FOR MY ENGLISH!
I'm using an italian keyboard, so to have a "#" character I have to
press ALT+CTRL+à but in wxStyledTextCtrl nothing happens.
Why?
Marco Barisione
e-mail: marco.bari@inwind.it
ICQ: 84277092
SORRY FOR MY ENGLISH!
I'm using an italian keyboard, so to have a "#" character I have to
press ALT+CTRL+à but in wxStyledTextCtrl nothing happens.
Why?
Marco Barisione
e-mail: marco.bari@inwind.it
ICQ: 84277092
Hi Marco,
I'm using an italian keyboard, so to have a "#" character I
have to press ALT+CTRL+à but in wxStyledTextCtrl nothing
happens. Why?
Sorry, I don't have an Italian keyboard to test this on and US style
keyboards don't have 'à' keys so this is difficult to reproduce and debug.
Fixing keyboard localisation bugs generally needs a sufficiently interested
developer with access to the problem keyboard. It also helps in fault
reports to reveal which operating system is being used.
Neil
Neil Hodgson wrote:
Hi Marco,
> I'm using an italian keyboard, so to have a "#" character I
> have to press ALT+CTRL+à but in wxStyledTextCtrl nothing
> happens. Why?
Sorry, I don't have an Italian keyboard to test this on and US
style keyboards don't have 'à' keys so this is difficult to
reproduce and debug.
Fixing keyboard localisation bugs generally needs a sufficiently
interested developer with access to the problem keyboard.
It also helps in fault reports to reveal which operating system is
being used.
I have this problem with WinMe, the problem is not present using
Scintilla from C++.
I think the problem can be found with other non-english keyboards,
and perhaps someone in this mailing list can do something, it's stupid
to have a cross-platform library if it cant' be used in Italy
I have this problem with WinMe, the problem is not present using
Scintilla from C++.
Then it's probably a problem in wxSTC where it is translating wx events to
what Scintilla needs. I expect to get wxSTC updated to the latest Scintilla
soon, so that would be a good time to try and address this. In the mean
time, if anybody having these troubles can try to find and document all the
cases where it fails that would be helpful. Also, anybody interested in
looking at the code in question can see it here:
http://cvs.wxwindows.org/cgi-bin/viewcvs.cgi/wxWindows/contrib/src/stc/stc.c
pp?rev=1.14&content-type=text/vnd.viewcvs-markup
in OnChar and OnKeyDown near the bottom, and in
http://cvs.wxwindows.org/cgi-bin/viewcvs.cgi/wxWindows/contrib/src/stc/Scint
illaWX.cpp?rev=1.12&content-type=text/vnd.viewcvs-markup
in DoAddChar and DoKeyDown, also near the bottom. I can tell you right off
that the trouble just reported is in OnChar as it doesn't call DoAddChar if
the Control or Alt keys are down. I remember having a list of exceptions in
there for the non-US keyboards, but they seem to have dissappeared and I
don't see anything in the CVS log about it... I don't remember right off
why I Skip()'d if Ctrl or Alt are down but I think it was because any Ctrl-
or Alt- keys bound to Scintilla functions would also insert the key. I'm
sure there's a way around that, I just need to find it
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!
Hi Marco,
Boa uses the following code to handle non-american keyboards,
German, French and Swiss-German keyboards supported so far,
Just figure out the codes your keybord uses (and send me a copy for
Boa too!)
keymap={'euro': {219: '\\', 57: ']', 56: '[', 55: '{', 337: '~', 226:
'|',
81: '@', 48: '}'},
'france': {51: '#', 219: ']', 56: '\\', 55: '`', 54: '|', 53:
'[',
52: '{', 226: '6', 50: '~', 337: '}', 48: '@'},
'swiss-german': {223: '}', 221: '~', 220: '{', 219: '`', 186:
'[',
55: '|', 226: '\\', 51: '#', 50: '@', 192:
']'},
}
def handleSpecialEuropeanKeys(self, event, countryKeymap='euro'):
key = event.KeyCode()
keymap = self.keymap[countryKeymap]
if event.AltDown() and event.ControlDown() and keymap.has_key(key):
currPos = self.GetCurrentPos()
self.InsertText(currPos, keymap[key])
self.SetCurrentPos(self.GetCurrentPos()+1)
self.SetSelectionStart(self.GetCurrentPos())
In Boa this is a method on a wxSTC derived control.
Just call this method from an OnKeyDown event passing the event.
Marco Barisione wrote:
SORRY FOR MY ENGLISH!
I'm using an italian keyboard, so to have a "#" character I have to
press ALT+CTRL+à but in wxStyledTextCtrl nothing happens.
Why?Marco Barisione
e-mail: marco.bari@inwind.it
ICQ: 84277092_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users
--
Riaan Booysen
___________________________________________________
Boa Constructor - RAD GUI building IDE for wxPython
http://boa-constructor.sourceforge.net