[regression]: Fix the issue where using -/= to turn pages causes the program to crash and prevents page turning.
This commit is contained in:
1 parent
476a5c7181
commit
bcaf34e1fb
6 files changed
+182
-89
No files matched your search
@@ -1,11 +1,10 @@
|
||||
#include "Private.h"
|
||||
#include "KeyHandlerEditSession.h"
|
||||
#include "EditSession.h"
|
||||
#include "MetasequoiaIME.h"
|
||||
#include "CompositionProcessorEngine.h"
|
||||
#include "KeyStateCategory.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include "MetasequoiaIME.h"
|
||||
#include "CompositionProcessorEngine.h"
|
||||
#include "KeyStateCategory.h"
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// ITfEditSession
|
||||
// CEditSessionBase
|
||||
@@ -19,21 +18,21 @@
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
STDAPI CKeyHandlerEditSession::DoEditSession(TfEditCookie ec)
|
||||
{
|
||||
HRESULT hResult = S_OK;
|
||||
|
||||
CKeyStateCategoryFactory *pKeyStateCategoryFactory = CKeyStateCategoryFactory::Instance();
|
||||
STDAPI CKeyHandlerEditSession::DoEditSession(TfEditCookie ec)
|
||||
{
|
||||
HRESULT hResult = S_OK;
|
||||
|
||||
CKeyStateCategoryFactory *pKeyStateCategoryFactory = CKeyStateCategoryFactory::Instance();
|
||||
CKeyStateCategory *pKeyStateCategory =
|
||||
pKeyStateCategoryFactory->MakeKeyStateCategory(_KeyState.Category, _pTextService);
|
||||
|
||||
if (pKeyStateCategory)
|
||||
{
|
||||
KeyHandlerEditSessionDTO keyHandlerEditSessioDTO(ec, _pContext, _uCode, _wch, _KeyState.Function);
|
||||
hResult = pKeyStateCategory->KeyStateHandler(_KeyState.Function, keyHandlerEditSessioDTO);
|
||||
|
||||
pKeyStateCategory->Release();
|
||||
pKeyStateCategoryFactory->Release();
|
||||
if (pKeyStateCategory)
|
||||
{
|
||||
KeyHandlerEditSessionDTO keyHandlerEditSessioDTO(ec, _pContext, _uCode, _wch, _KeyState.Function);
|
||||
hResult = pKeyStateCategory->KeyStateHandler(_KeyState.Function, keyHandlerEditSessioDTO);
|
||||
|
||||
pKeyStateCategory->Release();
|
||||
pKeyStateCategoryFactory->Release();
|
||||
}
|
||||
|
||||
return hResult;
|
||||
|
||||
Reference in new issue
Block a user