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:
Robin Dunn
2001-11-03 20:33:54 +00:00
parent b403ab005c
commit 00c64037fb
4 changed files with 4 additions and 4 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);