[maemo-developers] selectively disabling virtual keyboard

From: Austin Che maemo at austinche.name
Date: Mon Nov 26 17:45:00 EET 2007
> On Sat, Nov 24, 2007 at 10:28:28AM -0500, Austin Che wrote:
>>     Is is possible to create a text box that doesn't show the virtual
>>     keyboard when it receives the focus?
>
> Make it read-only.

    I don't think this is exactly the effect I need. I want something
    like the "device lock" screen (e.g. control panel->device
    lock->change lock code). The text box doesn't seem to be read-only
    because the text in it doesn't get grayed out. I guess it is
    simply unable to receive the focus. However, the buttons somehow
    also emulate a key press for the text box. The buttons don't just
    set the text directly as the number that is entered shows up for a
    brief moment then turns into an * which doesn't happen if I just
    programmatically change the text in the box.
    
    So assuming that disabling a text box from receiving the focus is
    sufficient to prevent the on-screen keyboard from showing up,
    what's the best way to send a synthetic key press to the text box?

More information about the maemo-developers mailing list