#91994# in preedit mode filter cursormovement keyevents
This commit is contained in:
parent
5d9ce3e8be
commit
6d88d971b8
2 changed files with 9 additions and 4 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: i18n_cb.hxx,v $
|
||||
*
|
||||
* $Revision: 1.5 $
|
||||
* $Revision: 1.6 $
|
||||
*
|
||||
* last change: $Author: pl $ $Date: 2001-08-24 10:22:29 $
|
||||
* last change: $Author: cp $ $Date: 2001-11-02 14:54:02 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -91,6 +91,8 @@ void SwitchIMCallback (XIC ix, XPointer client_data, XPointer call_data );
|
|||
void IC_IMDestroyCallback (XIM im, XPointer client_data, XPointer call_data);
|
||||
void IM_IMDestroyCallback (XIM im, XPointer client_data, XPointer call_data);
|
||||
|
||||
Bool IsControlCode(sal_Unicode nChar);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: i18n_ic.cxx,v $
|
||||
*
|
||||
* $Revision: 1.15 $
|
||||
* $Revision: 1.16 $
|
||||
*
|
||||
* last change: $Author: pl $ $Date: 2001-08-28 15:18:56 $
|
||||
* last change: $Author: cp $ $Date: 2001-11-02 14:52:56 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -645,6 +645,9 @@ SalI18N_InputContext::CommitStringCallback (sal_Unicode* pText, sal_Size nLength
|
|||
int
|
||||
SalI18N_InputContext::CommitKeyEvent(sal_Unicode* pText, sal_Size nLength)
|
||||
{
|
||||
if (nLength == 1 && IsControlCode(pText[0]))
|
||||
return 0;
|
||||
|
||||
if( maClientData.pFrame )
|
||||
{
|
||||
SalExtTextInputEvent aTextEvent;
|
||||
|
|
Loading…
Reference in a new issue