Remove virtual OnNeedCheckKeyboard method

This commit is contained in:
Oleg Korshul
2024-11-28 13:37:46 +03:00
parent 78a76eeff0
commit 01120ec31e
4 changed files with 3 additions and 8 deletions

View File

@ -207,7 +207,7 @@ public:
void StartKeyboardChecker();
void CheckKeyboard();
void SendKeyboardAttack();
virtual void OnNeedCheckKeyboard();
void OnNeedCheckKeyboard();
virtual bool IsPlatformKeyboardSupport();
virtual int GetPlatformKeyboardLayout();

View File

@ -47,7 +47,6 @@ public:
virtual CAscDpiChecker* InitDpiChecker();
virtual IExternalMessageLoop* GetExternalMessageLoop();
virtual int GetPlatformKeyboardLayout();
virtual void OnNeedCheckKeyboard();
void processEvents();
};

View File

@ -52,11 +52,6 @@ int QAscApplicationManager::GetPlatformKeyboardLayout()
return -1;
}
void QAscApplicationManager::OnNeedCheckKeyboard()
{
if (GetEventListener())
GetEventListener()->OnEvent(new NSEditorApi::CAscCefMenuEvent(ASC_MENU_EVENT_TYPE_CEF_CHECK_KEYBOARD));
}
void QAscApplicationManager::processEvents()
{
if (!IsExitMessageLoop())

View File

@ -279,7 +279,8 @@ void CAscApplicationManager::StartKeyboardChecker()
}
void CAscApplicationManager::OnNeedCheckKeyboard()
{
// none. evaluate in UI thread
if (GetEventListener())
GetEventListener()->OnEvent(new NSEditorApi::CAscCefMenuEvent(ASC_MENU_EVENT_TYPE_CEF_CHECK_KEYBOARD));
}
void CAscApplicationManager::CheckKeyboard()