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:
parent
b403ab005c
commit
00c64037fb
@ -1854,7 +1854,7 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
|
||||
// alt let's skip it.
|
||||
bool ctrl = evt.ControlDown();
|
||||
bool alt = evt.AltDown();
|
||||
bool skip = (ctrl || alt && ! (ctrl && alt));
|
||||
bool skip = ((ctrl || alt) && ! (ctrl && alt));
|
||||
|
||||
if (key <= 0xff && !iscntrl(key) && !m_lastKeyDownConsumed && !skip) {
|
||||
m_swx->DoAddChar(key);
|
||||
|
@ -398,7 +398,7 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
|
||||
// alt let's skip it.
|
||||
bool ctrl = evt.ControlDown();
|
||||
bool alt = evt.AltDown();
|
||||
bool skip = (ctrl || alt && ! (ctrl && alt));
|
||||
bool skip = ((ctrl || alt) && ! (ctrl && alt));
|
||||
|
||||
if (key <= 0xff && !iscntrl(key) && !m_lastKeyDownConsumed && !skip) {
|
||||
m_swx->DoAddChar(key);
|
||||
|
@ -1854,7 +1854,7 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
|
||||
// alt let's skip it.
|
||||
bool ctrl = evt.ControlDown();
|
||||
bool alt = evt.AltDown();
|
||||
bool skip = (ctrl || alt && ! (ctrl && alt));
|
||||
bool skip = ((ctrl || alt) && ! (ctrl && alt));
|
||||
|
||||
if (key <= 0xff && !iscntrl(key) && !m_lastKeyDownConsumed && !skip) {
|
||||
m_swx->DoAddChar(key);
|
||||
|
@ -398,7 +398,7 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
|
||||
// alt let's skip it.
|
||||
bool ctrl = evt.ControlDown();
|
||||
bool alt = evt.AltDown();
|
||||
bool skip = (ctrl || alt && ! (ctrl && alt));
|
||||
bool skip = ((ctrl || alt) && ! (ctrl && alt));
|
||||
|
||||
if (key <= 0xff && !iscntrl(key) && !m_lastKeyDownConsumed && !skip) {
|
||||
m_swx->DoAddChar(key);
|
||||
|
Loading…
Reference in New Issue
Block a user