ecode: Use default modifier for all the shortcuts using KEYMOD_CTRL.

This commit is contained in:
Martín Lucas Golini
2023-07-28 21:12:34 -03:00
parent cf13a5aa5d
commit 87afb70851
3 changed files with 11 additions and 11 deletions

View File

@@ -424,7 +424,7 @@ bool LSPClientPlugin::onMouseClick( UICodeEditor* editor, const Vector2i& pos,
const Uint32& flags ) {
Input* input = editor->getUISceneNode()->getWindow()->getInput();
Uint32 mod = input->getSanitizedModState();
if ( mod != ( KEYMOD_LALT | KEYMOD_CTRL ) || ( flags & EE_BUTTON_LMASK ) == 0 )
if ( mod != ( KEYMOD_LALT | KeyMod::getDefaultModifier() ) || ( flags & EE_BUTTON_LMASK ) == 0 )
return false;
auto docPos = editor->resolveScreenPosition( pos.asFloat() );