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:
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user