A little tweak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1854,7 +1854,7 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
|
|||||||
// alt let's skip it.
|
// alt let's skip it.
|
||||||
bool ctrl = evt.ControlDown();
|
bool ctrl = evt.ControlDown();
|
||||||
bool alt = evt.AltDown();
|
bool alt = evt.AltDown();
|
||||||
bool skip = (ctrl || alt && ! (ctrl && alt));
|
bool skip = ((ctrl || alt) && ! (ctrl && alt));
|
||||||
|
|
||||||
if (key <= 0xff && !iscntrl(key) && !m_lastKeyDownConsumed && !skip) {
|
if (key <= 0xff && !iscntrl(key) && !m_lastKeyDownConsumed && !skip) {
|
||||||
m_swx->DoAddChar(key);
|
m_swx->DoAddChar(key);
|
||||||
|
@@ -398,7 +398,7 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
|
|||||||
// alt let's skip it.
|
// alt let's skip it.
|
||||||
bool ctrl = evt.ControlDown();
|
bool ctrl = evt.ControlDown();
|
||||||
bool alt = evt.AltDown();
|
bool alt = evt.AltDown();
|
||||||
bool skip = (ctrl || alt && ! (ctrl && alt));
|
bool skip = ((ctrl || alt) && ! (ctrl && alt));
|
||||||
|
|
||||||
if (key <= 0xff && !iscntrl(key) && !m_lastKeyDownConsumed && !skip) {
|
if (key <= 0xff && !iscntrl(key) && !m_lastKeyDownConsumed && !skip) {
|
||||||
m_swx->DoAddChar(key);
|
m_swx->DoAddChar(key);
|
||||||
|
@@ -1854,7 +1854,7 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
|
|||||||
// alt let's skip it.
|
// alt let's skip it.
|
||||||
bool ctrl = evt.ControlDown();
|
bool ctrl = evt.ControlDown();
|
||||||
bool alt = evt.AltDown();
|
bool alt = evt.AltDown();
|
||||||
bool skip = (ctrl || alt && ! (ctrl && alt));
|
bool skip = ((ctrl || alt) && ! (ctrl && alt));
|
||||||
|
|
||||||
if (key <= 0xff && !iscntrl(key) && !m_lastKeyDownConsumed && !skip) {
|
if (key <= 0xff && !iscntrl(key) && !m_lastKeyDownConsumed && !skip) {
|
||||||
m_swx->DoAddChar(key);
|
m_swx->DoAddChar(key);
|
||||||
|
@@ -398,7 +398,7 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
|
|||||||
// alt let's skip it.
|
// alt let's skip it.
|
||||||
bool ctrl = evt.ControlDown();
|
bool ctrl = evt.ControlDown();
|
||||||
bool alt = evt.AltDown();
|
bool alt = evt.AltDown();
|
||||||
bool skip = (ctrl || alt && ! (ctrl && alt));
|
bool skip = ((ctrl || alt) && ! (ctrl && alt));
|
||||||
|
|
||||||
if (key <= 0xff && !iscntrl(key) && !m_lastKeyDownConsumed && !skip) {
|
if (key <= 0xff && !iscntrl(key) && !m_lastKeyDownConsumed && !skip) {
|
||||||
m_swx->DoAddChar(key);
|
m_swx->DoAddChar(key);
|
||||||
|
Reference in New Issue
Block a user