Obtain the input method status of Symbian

Source: Internet
Author: User

It is best to use makneditingstateindicator to obtain the input method status. After keyup and keydown, obtain the input method status. The Code is as follows:

Makneditingstateindicator * Ei = caknenv: static ()-> editingstateindicator ();
If (! EI) return eunknown;

Caknindicatorcontainer * Ic = EI-> indicatorcontainer ();
If (! Ic) return eunknown;

If (IC-> indicatorstate (s_uid (eaknnavipaneeditorindicatorpinyin )))
{
// To do... if input method = T9 (pinyin and strokes)
}
If (IC-> indicatorstate (s_uid (eaknnavipaneeditorindicatorstroke )))
{
// To do... if input method = T9 (pinyin and strokes)
}
Else if (IC-> indicatorstate (s_uid (eaknnavipaneeditorindicatorlowercase )))
{
// To do... if input method = "ABC ";
}
Else if (IC-> indicatorstate (s_uid (eaknnavipaneeditorindicatoruppercase )))
{
// To do... if input method = "ABC ";
}
Else if (IC-> indicatorstate (s_uid (eaknnavipaneeditorindicatortextcase )))
{
// To do... if input method = "ABC ";
}
Else if (IC-> indicatorstate (s_uid (eaknnavipaneeditorindicatornumbercase )))
{
// To do... if input method = "123 ";
}
Return eunknown;

 

 

Struct s_uid: Public tuid
{
S_uid (int I)
{
Iuid = I;
}
};

Class makneditingstateindicator
{
Public:
Virtual void setstate (tint astate) = 0;
Virtual caknindicatorcontainer * indicatorcontainer () = 0;
};

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.