2021-03-21 16:30:34 +02:00
|
|
|
/*
|
|
|
|
* CFocusableHelper.cpp, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
2024-03-29 07:48:52 +02:00
|
|
|
#include "StdInc.h"
|
2021-03-21 16:30:34 +02:00
|
|
|
#include "CFocusableHelper.h"
|
2024-08-14 22:30:19 +02:00
|
|
|
#include "../client/widgets/CTextInput.h"
|
2021-03-21 16:30:34 +02:00
|
|
|
|
|
|
|
void removeFocusFromActiveInput()
|
|
|
|
{
|
2024-05-14 17:51:01 +02:00
|
|
|
if(CFocusable::inputWithFocus != nullptr)
|
|
|
|
CFocusable::inputWithFocus->removeFocus();
|
2021-03-21 16:30:34 +02:00
|
|
|
}
|