Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 12
Registered: ‎10-12-2010
My Device: Not Specified
Accepted Solution

How to remove the spell check dialog in a KeywordFilterField

I am attempting to create a search screen based on a KeywordFilterField.  I am modeling my solution based on the Blackberry KeywordFilterDemo example.  In that example, they create a CustomKeywordField to enter the search string.  In my application, as I type I am getting a spell checker of some kind which is a drop down list that obscures my TextField and I want to disable that but have been unsuccessful to this point.  The field I am using for searching has the following constructor:

    final static class CustomKeywordField extends BasicEditField {
        CustomKeywordField() {
            super(USE_ALL_WIDTH | NON_FOCUSABLE | NO_LEARNING | NO_NEWLINE | NON_SPELLCHECKABLE);
            setLabel("Search: ");
        }
        
I added the flag NON_SPELLCHECKABLE in the hopes of removing the dialog which appears.  Does anybody know how to disable this?

 

Highlighted
Developer
Posts: 604
Registered: ‎12-27-2010
My Device: Not Specified

Re: How to remove the spell check dialog in a KeywordFilterField

Found an older post that suggests using NO_COMPLEX_INPUT to disable it.

Contributor
Posts: 12
Registered: ‎10-12-2010
My Device: Not Specified

Re: How to remove the spell check dialog in a KeywordFilterField

That was the magic trick.  Thank you.

New Contributor
Posts: 4
Registered: ‎11-11-2010
My Device: Not Specified

Re: How to remove the spell check dialog in a KeywordFilterField

Thanks! this was really help full