Reduce the value of the fkey guard for unicode characters

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-03-02 21:35:50 +00:00
parent 7f2a8ba844
commit 1b14227e64
4 changed files with 8 additions and 8 deletions

View File

@@ -2782,9 +2782,9 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
// be a function key or etc., the platforms appear to always give us a // be a function key or etc., the platforms appear to always give us a
// small value in this case) then fallback to the ascii key code but // small value in this case) then fallback to the ascii key code but
// don't do anything for function keys or etc. // don't do anything for function keys or etc.
if (key <= 255) { if (key <= 127) {
key = evt.GetKeyCode(); key = evt.GetKeyCode();
keyOk = (key <= 255); keyOk = (key <= 127);
} }
if (keyOk) { if (keyOk) {
m_swx->DoAddChar(key); m_swx->DoAddChar(key);

View File

@@ -550,9 +550,9 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
// be a function key or etc., the platforms appear to always give us a // be a function key or etc., the platforms appear to always give us a
// small value in this case) then fallback to the ascii key code but // small value in this case) then fallback to the ascii key code but
// don't do anything for function keys or etc. // don't do anything for function keys or etc.
if (key <= 255) { if (key <= 127) {
key = evt.GetKeyCode(); key = evt.GetKeyCode();
keyOk = (key <= 255); keyOk = (key <= 127);
} }
if (keyOk) { if (keyOk) {
m_swx->DoAddChar(key); m_swx->DoAddChar(key);

View File

@@ -2782,9 +2782,9 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
// be a function key or etc., the platforms appear to always give us a // be a function key or etc., the platforms appear to always give us a
// small value in this case) then fallback to the ascii key code but // small value in this case) then fallback to the ascii key code but
// don't do anything for function keys or etc. // don't do anything for function keys or etc.
if (key <= 255) { if (key <= 127) {
key = evt.GetKeyCode(); key = evt.GetKeyCode();
keyOk = (key <= 255); keyOk = (key <= 127);
} }
if (keyOk) { if (keyOk) {
m_swx->DoAddChar(key); m_swx->DoAddChar(key);

View File

@@ -550,9 +550,9 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
// be a function key or etc., the platforms appear to always give us a // be a function key or etc., the platforms appear to always give us a
// small value in this case) then fallback to the ascii key code but // small value in this case) then fallback to the ascii key code but
// don't do anything for function keys or etc. // don't do anything for function keys or etc.
if (key <= 255) { if (key <= 127) {
key = evt.GetKeyCode(); key = evt.GetKeyCode();
keyOk = (key <= 255); keyOk = (key <= 127);
} }
if (keyOk) { if (keyOk) {
m_swx->DoAddChar(key); m_swx->DoAddChar(key);