diff --git a/src/eepp/ui/uicodeeditor.cpp b/src/eepp/ui/uicodeeditor.cpp index 116a0b5d0..fd5e8a5fd 100644 --- a/src/eepp/ui/uicodeeditor.cpp +++ b/src/eepp/ui/uicodeeditor.cpp @@ -914,8 +914,9 @@ Uint32 UICodeEditor::onTextInput( const TextInputEvent& event ) { Input* input = getUISceneNode()->getWindow()->getInput(); if ( ( input->isLeftAltPressed() && !event.getText().empty() && event.getText()[0] == '\t' ) || - ( input->isLeftControlPressed() && !input->isAltGrPressed() ) || input->isMetaPressed() || - input->isLeftAltPressed() ) + ( input->isLeftControlPressed() && !input->isLeftAltPressed() && + !input->isAltGrPressed() ) || + input->isMetaPressed() || input->isLeftAltPressed() ) return 0; if ( mLastExecuteEventId == getUISceneNode()->getWindow()->getInput()->getEventsSentId() ) diff --git a/src/eepp/ui/uiconsole.cpp b/src/eepp/ui/uiconsole.cpp index cad433b7e..5d1811a2f 100644 --- a/src/eepp/ui/uiconsole.cpp +++ b/src/eepp/ui/uiconsole.cpp @@ -899,8 +899,9 @@ Uint32 UIConsole::onTextInput( const TextInputEvent& event ) { Input* input = getUISceneNode()->getWindow()->getInput(); if ( ( input->isLeftAltPressed() && !event.getText().empty() && event.getText()[0] == '\t' ) || - ( input->isLeftControlPressed() && !input->isAltGrPressed() ) || input->isMetaPressed() || - input->isLeftAltPressed() ) + ( input->isLeftControlPressed() && !input->isLeftAltPressed() && + !input->isAltGrPressed() ) || + input->isMetaPressed() || input->isLeftAltPressed() ) return 0; if ( mLastExecuteEventId == getUISceneNode()->getWindow()->getInput()->getEventsSentId() ) diff --git a/src/eepp/ui/uitextinput.cpp b/src/eepp/ui/uitextinput.cpp index 38c0355a8..b1865494a 100644 --- a/src/eepp/ui/uitextinput.cpp +++ b/src/eepp/ui/uitextinput.cpp @@ -789,8 +789,9 @@ Uint32 UITextInput::onTextInput( const TextInputEvent& event ) { Input* input = getUISceneNode()->getWindow()->getInput(); if ( ( input->isLeftAltPressed() && !event.getText().empty() && event.getText()[0] == '\t' ) || - ( input->isLeftControlPressed() && !input->isAltGrPressed() ) || input->isMetaPressed() || - input->isLeftAltPressed() ) + ( input->isLeftControlPressed() && !input->isLeftAltPressed() && + !input->isAltGrPressed() ) || + input->isMetaPressed() || input->isLeftAltPressed() ) return 0; if ( mLastExecuteEventId == getUISceneNode()->getWindow()->getInput()->getEventsSentId() ) diff --git a/src/modules/eterm/src/eterm/ui/uiterminal.cpp b/src/modules/eterm/src/eterm/ui/uiterminal.cpp index bc737ad22..85e6a4e14 100644 --- a/src/modules/eterm/src/eterm/ui/uiterminal.cpp +++ b/src/modules/eterm/src/eterm/ui/uiterminal.cpp @@ -421,8 +421,9 @@ Uint32 UITerminal::onTextInput( const TextInputEvent& event ) { Input* input = getUISceneNode()->getWindow()->getInput(); if ( ( input->isLeftAltPressed() && !event.getText().empty() && event.getText()[0] == '\t' ) || - ( input->isLeftControlPressed() && !input->isAltGrPressed() ) || input->isMetaPressed() || - input->isLeftAltPressed() ) + ( input->isLeftControlPressed() && !input->isLeftAltPressed() && + !input->isAltGrPressed() ) || + input->isMetaPressed() || input->isLeftAltPressed() ) return 0; mTerm->onTextInput( event.getChar() );