mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Replaced event handling break system with key capturing
This commit is contained in:
@@ -574,7 +574,6 @@ void CTextInput::keyPressed(EShortcut key)
|
||||
if(key == EShortcut::GLOBAL_MOVE_FOCUS)
|
||||
{
|
||||
moveFocus();
|
||||
GH.breakEventHandling();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -622,6 +621,9 @@ bool CTextInput::captureThisKey(EShortcut key)
|
||||
if(key == EShortcut::GLOBAL_RETURN)
|
||||
return false;
|
||||
|
||||
if (!focus)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user