mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-01 18:50:16 +03:00
Fix ctrl+alt combination for text input on Windows.
This commit is contained in:
@@ -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() )
|
||||
|
||||
@@ -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() )
|
||||
|
||||
@@ -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() )
|
||||
|
||||
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user