How to force the virtual keyboard to hide?

I am developing an app for BB Storm and I need to force the virtual keyboard to hide and close pushing / croustilleur between the screens.  I tried to set the visibility state of the keyboard during the initialization of each screen via Screen.getVirtualKeyboard () .setVisibility (VirtualKeyboard.HIDE_FORCE), but it does not work.

The documentation for the keyboard interaction and screen is sparse, at best, I wish RIM would improve their docs.

I found the problem.  It turns out that only the control (not the screen) who "owns" the virtual keyboard can show/hide it.  So I was able to hide the keyboard by substituting the method onUnFocus of the input area and hide the keyboard.  This seems silly as the reference for the virtual keyboard is obtained from the screen object.

protected void onUnfocus()
{
super.onUnfocus ();
       
VirtualKeyboard vk is UiApplication.getUiApplication () .getActiveScreen () .getVirtualKeyboard ();.
vk.setVisibility (VirtualKeyboard.HIDE);
}

Tags: BlackBerry Developers

Similar Questions

  • How to use the virtual keyboard in flex application

    Hello..

    I use flash builder 4.

    How to use the virtual keyboard in flex?

    If one aware of this pls answer me...

    --

    Saran r

    Hello

    You can declare the event directly click handler MXML online, you don't need the initfunc() on creationComplete:

    You need not switch in handleEvent, a line will do everything:

    TextBox.Text += button .label (event.currentTarget);

    The only advantage I see declaring all these components button in MXML, you can visually position the keys by using Design view in Flex Builder.

  • How to customize the virtual keyboard?

    Hello

    I am looking for a way to customize the virtual keyboard. I want to customize keyboard and form location, places default keys in the keyboard for some specific languages, the keyboard, the size of the keyboard etc. However, the customization nearest you, I found on the API reference manual is to define the name of the Enter key and to use different layout of a set fixed (link). Construction of a new keyboard from scratch is not an option for me. And I want to use the default keyboard features (like pushing the key words of)

    How can I customize the virtual keyboard by default?

    A big no, no, you can't mess with the user of a BB keyboard! If you need a custom keyboard (let's say for a game), you will need to start over again.

  • How to force the specific keyboard on the accounts of group policy

    Hello

    Does anyone know if it is possible to force a keyboard layout specific as 'default' on accounts? I was looking for a policy on this, but I could not find. The keyboard we must force is a specific Chinese.

    Chinese (Simplified) - Microsoft Pinyin ABC input Style

    Thanks in advance for answers

    Hello

    Please keep us updated on the issue.

    Because these computers are on the network domain, question you posted would be better suited in the TechNet Forums. This is why I would recommend posting your query in the TechNet Forums.

    TechNet forums

    Thank you.

  • hide the virtual keyboard hangs in Z10

    Hi, I'm porting android app to Z10.

    I use following code to hide the virtual keyboard in onCreate():

    =================================================

    InputMethodManager imm = (InputMethodManager) getSystemService (Context.INPUT_METHOD_SERVICE);  imm.hideSoftInputFromWindow (mainActivity.this.getCurrentFocus () .getWindowToken (), inputMethodManager.HIDE_NOT_ALWAYS);

    =============================================

    However, it always crashes in BB10.2.

    Can someone tell me how to hide the virtual keyboard?

    Thank you

    I finally found the problem:
    1 when I have something to edit entry, click on the button 'Next' in the virtual keyboard, it will focus on the button.
    2. when I click the button, the "mainActivity.this.getCurrentFocus ()" is return NULL. This caused the problem

    Thanks anyway.

  • How can I stop the virtual keyboard appear gestures?

    Hello

    How can I stop the virtual keyboard to appear coincidentally in my game? There is no reason for the player to use the keyboard for the game, so I want to disable it.

    My current solution is to wait for the NAVIGATOR_KEYBOARD_STATE with the NAVIGATOR_KEYBOARD_OPENING State and by calling virtualkeyboard_hide(). But which causes the keyboard to appear a few pixels down before disappearing again.

    Is there a way of elequent more disable the gesture of virtual keyboard?

    Thank you

    Claudine

    I'm afraid, is not possible. If BlackBerry Advisor does not fix me don't waste your time on this. If a user low blows to the left of the keyboard is displayed regardless of your application.

  • BlackBerry smartphones can not hide the virtual keyboard

    Since yesterday, I have not been able to hide the virtual keyboard to quickly slide the finger down through the virtual keyboard.  I can hide it only by pressing the BB and then by choosing Hide keyboard.

    I am afraid that something bad might happen on the phone and I would like to know if there is a way to solve this problem before you return it to the store.

    Thank you.

    you have the latest OS and I do not see this question on my own.

    did you do a battery pull? With the BlackBerry device powered time, remove battery for a few seconds and then reinsert the battery to restart. see if the problem persists after.

  • How to enter text in the text entry box using the virtual keyboard in a flex application

    Re: How to enter text in the text entry box using the virtual keyboard in a flex application

    Hello

    I'm using flash builder 4.

    I designed the virtual keyboard, I have to update the text in the input text permanently area using the virtual keyboard.

    I used the events.i button does a few he's cheating.

    can someone help me tat.

    Thanks in advance.

    I have included my mxml with this program.

    virtualKeyboard. MXML

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = minHeight = "955" "600" creationComplete = "initfunc ()" >
    < fx:Script >
    <! [CDATA]
    Import mx.controls.Alert;
    private function initfunc (): void
    {
    B1.addEventListener (MouseEvent.Click, HandleEvent);
    B2.addEventListener (MouseEvent.Click, HandleEvent);
    B3.addEventListener (MouseEvent.Click, HandleEvent);
    B4.addEventListener (MouseEvent.Click, HandleEvent);
    B5.addEventListener (MouseEvent.Click, HandleEvent);
    B6.addEventListener (MouseEvent.Click, HandleEvent);
    B7.addEventListener (MouseEvent.Click, HandleEvent);
    B8.addEventListener (MouseEvent.Click, HandleEvent);
    B9.addEventListener (MouseEvent.Click, HandleEvent);
    B10.addEventListener (MouseEvent.Click, HandleEvent);
    B11.addEventListener (MouseEvent.Click, HandleEvent);
    B12.addEventListener (MouseEvent.Click, HandleEvent);
    B13.addEventListener (MouseEvent.Click, HandleEvent);
    B14.addEventListener (MouseEvent.Click, HandleEvent);
    B15.addEventListener (MouseEvent.Click, HandleEvent);
    B16.addEventListener (MouseEvent.Click, HandleEvent);
    B17.addEventListener (MouseEvent.Click, HandleEvent);
    B18.addEventListener (MouseEvent.Click, HandleEvent);
    B19.addEventListener (MouseEvent.Click, HandleEvent);


    B20.addEventListener (MouseEvent.Click, HandleEvent);
    B21.addEventListener (MouseEvent.Click, HandleEvent);
    B22.addEventListener (MouseEvent.Click, HandleEvent);
    B23.addEventListener (MouseEvent.Click, HandleEvent);
    B24.addEventListener (MouseEvent.Click, HandleEvent);
    B25.addEventListener (MouseEvent.Click, HandleEvent);
    B26.addEventListener (MouseEvent.Click, HandleEvent);
    B27.addEventListener (MouseEvent.Click, HandleEvent);
    B28.addEventListener (MouseEvent.Click, HandleEvent);
    B29.addEventListener (MouseEvent.Click, HandleEvent);
    B30.addEventListener (MouseEvent.Click, HandleEvent);
    B31.addEventListener (MouseEvent.Click, HandleEvent);
    B32.addEventListener (MouseEvent.Click, HandleEvent);
    B33.addEventListener (MouseEvent.Click, HandleEvent);
    B34.addEventListener (MouseEvent.Click, HandleEvent);
    B35.addEventListener (MouseEvent.Click, HandleEvent);
    B36.addEventListener (MouseEvent.Click, HandleEvent);
    B37.addEventListener (MouseEvent.Click, HandleEvent);
    B38.addEventListener (MouseEvent.Click, HandleEvent);
    B39.addEventListener (MouseEvent.Click, HandleEvent);
    B40.addEventListener (MouseEvent.Click, HandleEvent);
    B41.addEventListener (MouseEvent.Click, HandleEvent);
    B42.addEventListener (MouseEvent.Click, HandleEvent);
    B43.addEventListener (MouseEvent.Click, HandleEvent);
    B44.addEventListener (MouseEvent.Click, HandleEvent);
    B45.addEventListener (MouseEvent.Click, HandleEvent);
    B46.addEventListener (MouseEvent.Click, HandleEvent);
    B47.addEventListener (MouseEvent.Click, HandleEvent);
    B48.addEventListener (MouseEvent.Click, HandleEvent);
    B49.addEventListener (MouseEvent.Click, HandleEvent);
    B50.addEventListener (MouseEvent.Click, HandleEvent);
    B51.addEventListener (MouseEvent.Click, HandleEvent);
    B52.addEventListener (MouseEvent.Click, HandleEvent);
    B53.addEventListener (MouseEvent.Click, HandleEvent);

    }
    public void handleEvent (e: MouseEvent): void
    {
    var a: String = e.target.name;
    Alert.Show (e.Target.Name);
    var b:String = null;
    Switch (a)
    {

    case 'Button20 ':
    b = TextBox.Text;
    TextBox.Text = "a";
    TextBox.Text = b + "a";
    break;


    case 'Button21 ':

    TextBox.Text = "b";
    TextBox.Text = b + "b";
    break;


    by default:

    TextBox.Text = "s";
    TextBox.Text = b + "s";
    }
    }

    []] >
    < / fx:Script >

    < s:Panel = "43" x y = "82" width = "527" height = "213" >
    < mx:Button = "71" x y = '86' id = "b1" label = "1" width = "30" height = "24" / >
    < s:Button = "180" x y = '86' id = "b2" label = "5" width = "30" height = "24" / >
    < s:Button = "127" x y = '86' id = "b3" label = "3" width = "30" height = "24" / >
    < s:Button = "99" x y = '86' id = "b4" label = "2" width = "30" height = "24" / >
    < s:Button = "323" x y = '86' id = "b5" label = "0" width = "30" height = "24" / >
    < s:Button = "294" x y = '86' id = "b6" label = "9" width = "30" height = "24" / >
    < s:Button = "265" x y = '86' id = "b7" label = "8" width = "30" height = "24" / >
    < s:Button x = '237' y = '86' id = "b8" label = "7" width = "30" height = "24" / >
    < s:Button = '209' x y = '86' id = "b9" label = "6" width = "30" height = "24" / >
    < s:Button = "42" x y = '86' id = "b10" label = "" ' "width ="30"height ="24"/ >"
    < s:Button x = "382" y = '86' id = "b11" label = "=" width = "30" height = "24" / >
    < s:Button = '353' x y = '86' id = "b12" label = "» largeur" width = "30" height = "24" / > "
    < s:Button = "410" x y = '86' id = "b13" label = "back" width = "76" height = "24" / >
    < s:Button = "157" x y = '86' id = "b14" label = "4" width = "30" height = "24" / >
    < s:Button = "43" x = "109" id = "b15" label = "tab" width = "66" height = "24" / >
    < s:Button = "105" x = "109" id = "b16" label = "q" width = "31" height = "24" / >
    < s:Button = "247" x = "109" id = "b17" label = "y" width = "30" height = "24" / >
    < s:Button '303' = x y = "109" id = "b18" label = "i" width = "31" height = "24" / >
    < s:Button = "361" x y = '110' id = "b19" label = "p" width = "34" height = "23" / >
    < s:Button = "394" x = "109" id = "b20" label = "[" width = "31" height = "24" / >] "
    < s:Button = "191" x = "109" id = "b21" label = "r" width = "34" height = "24" / >
    < s:Button '424' = x y = "109" id = "b22" label = "]" width = "31" height = "24" / > "
    < s:Button = "222" x = "109" id = "b23" label = "t" width = "31" height = "24" / >
    < s:Button = "161" x = "109" id = "b24" label = "e" width = "31" height = "24" / >
    < s:Button = "133" x = "109" id = "b25" label = "w" width = "31" height = "24" / >
    < s:Button = "332" x = "109" id = "b26" label = "o" width = "31" height = "24" / >
    < s:Button = "275" x = "109" id = "b27" label = "u" width = "31" height = "24" / >
    < s:Button = "220" x = "133" id = "b28" label = "g" width = "31" height = "24" / >
    < s:Button '424' = x y = "132" id = "b29" label = "enter" width = "62" height = "24" / >
    < s:Button = "43" x = "132" id = "b30" label = "caps" width = "66" height = "24" / >
    < s:Button = "275" x = "133" id = "b31" label = "j" width = "42" height = "23" / >
    < s:Button = "314" x = "132" id = "b32" label = "k" width = "31" height = "24" / >
    < s:Button = "133" x = "133" id = "b33" label = "s" width = "31" height = "23" / >
    < s:Button = "161" x = "133" id = "b34" label = "d" width = "31" height = "23" / >
    < s:Button = "250" x = "133" id = "b35" label = "h" width = "31" height = "23" / >
    < s:Button = "105" x = "133" id = "b36" label = "a" width = "31" height = "23" / >
    < s:Button = "191" x = "133" id = "b37" label = "f" width = "31" height = "23" / >
    < s:Button = "342" x = "132" id = "b38" label = "l" width = "31" height = "24" / >
    < s:Button = "152" x = "154" id = "b39" label = "x" width = "31" height = "24" / >
    < s:Button = "353" x = "154" id = "b40" label = "'." " Width = "31" height = "24" / >
    < s:Button = "325" x y = "154" id = "b41" label = "," width = "31" height = "24" / >
    < s:Button = "294" x = "154" id = "b42" label = "m" width = "31" height = "24" / >
    < s:Button = "259" x = "154" id = "b43" label = "n" width = "37" height = "24" / >
    < s:Button = '236' x y = "154" id = "b44" label = "b" width = "31" height = "24" / >
    < s:Button = "211" x = "154" id = "b45" label = "v" width = "31" height = "24" / >
    < s:Button = "181" x = "154" id = "b46" label = "c" width = "31" height = "24" / >
    < s:Button = "122" x = "154" id = "b47" label = "z" width = "31" height = "24" / >
    < s:Button = "380" x = "154" id = "b48" label = "/" width = "31" height = "24" / >
    < s:Button '368' = x y = "132" id = "b49" label width = ';' = "31" height = "24" / >
    < s:Button = "396" x = "132" id = "b50" label = "" ' "width ="31"height ="24"/ >"
    < s:Button = "43" x = "154" id = "b51" label = "shift" width = "82" height = "24" / >
    < s:Button '407' = x y = id = "154" "b52" label = "shift" width = "79" height = "24" / >
    < s:Button = "455" x = "109" id = "b53" label = "------" width = "31" height = "24" / >

    < / s:Panel >
    < s:TextInput = "161" x = "27" id = "textbox" width = "253" / >

    < / s:Application >

    Kind regards

    Saran r

    Hello

    http://gumbo.flashhub.NET/keyboard/

    It is a small example of a 'virtual' keyboard that will enter the text into a textinput/textarea component selected. Capslock and shift key States really aren't quite right (really need control shift/cap lock combo), but there is a simple tab and backspace (delete) and enter the function key.

    hope this is useful

    David.

  • The virtual keyboard will prevent the display of gestures in some of the screens.

    Hello

    If peripheral BB10 function key a cheap shots left that the keyboard is displayed even if the screen has no control of editfield. How can I disable this behavior on some of the screen.

    Same issue was discussed below thread, but there is one year and no solution:

    https://supportforums.BlackBerry.com/T5/native-development/how-do-I-prevent-the-virtual-keyboard-fro...

    A workaround that I have implemented is to listen BPS events:

    Subscribe (virtualkeyboard_get_domain ());

    then, virtualkeyboard_request_events (0);

    and then, to catch keyboard events and hide the keyboard.

    If (bps_event_get_domain (event) is virtualkeyboard_get_domain())
    {
    virtualkeyboard_hide();
    }

    This workaround works, but the problem is virtual keyboard appears to half way through and dismissed immd.

    I want to completely disable the virtual keyboard to appear on the gesture on some of my screens.

    is this possible? using something in the bar - descriptor.xml? or handling certain events in C++, QML?

    Here is the configuration that I use:

    SDK: 10.1

    Feature: Z10 with software version 10.2

    IDE: Momentics version 2.0

    Thanks in advance.

    I think the problem here is that gestures like this are handled by OS not by an application so you can not stop this behavior.

  • After the upgrade to win10 does not show the virtual keyboard in the taskbar

    After the Win10 the virtual keyboard does not show in the taskbar when you use programs that require to connect and it does not appear iwhen attempt to use Word (version Office365). These programs are therefore unusable, unless it is a workaround.  Does anyone know how to solve this or a work around for it?

    Hello m875,.

    What 'Tablet' do you use?

    I improved my tablet of 8 flow and had no problems.

    If you go to settings > devices > typing, you can enable and disable certain functions of touchpad.

    The last two options on the bottom are disabled by default. Can you turn those on to see if this gives you what you need?

    (Automatically display the touch keyboard in glass mode apps...)

    Once, when I type a mailbox type, the keyboard will appear.

    Does that help? Let me know.

  • my virtual keyboard does not work when I try to connect to my Bank. keeps telling me to use the virtual keyboard, but it does not work

    I use to be able to use the virtual keyboard when I logged my Bank. now it has stopped working.

    Try a system restore to a Date before the problem began:

    Restore point:

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    http://www.windowsvistauserguide.com/system_restore.htm

    Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.

    See you soon.

    Mick Murphy - Microsoft partner

  • Unable to get the virtual keyboard.

    Hi all

    On my request, I want to use the virtual keyboard. When using "BasicEditField" I could get the virtual keyboard. help-

    this.getVirtualKeyboard () .setVisibility (VirtualKeyboard.SHOW_FORCE);

    but when I add 'PasswordEditField' I don't you virtuakeyboard. Any solution?

    When you move to the screen following at this time bfore pushing the next screen you can use this piece of code to hide the keyboard

    UiApplication.getUiApplication().getActiveScreen().getVirtualKeyboard().setVisibility(VirtualKeyboard.HIDE);
    

    Press the button Bravo thank the user who has helped you.

    If your problem has been resolved then please mark the thread as "accepted solution".

  • BlackBerry smartphones select, copy, cut, with only the virtual keyboard?

    I hesitated in asking what should be obvious, but I almost exclusively use the manual keyboard, due in part to the ease and accuracy of text (alt + trackball) selection and then proceed to copy etc.

    How to do the same with the virtual keyboard?

    Place the cursor in the right place for the beginning of the word, press the BB button and 'select', highlight the trackball/pad through and again press the BB button and select "copy".

  • How to use the software keyboard Toshiba 50L9450VE TV?

    I just bought a LED TV model 50L9450VE. When installing, I need to enter the password for the wifi network. The remote doesn't have a keyboard of the letter, and the TV shows a soft keyboard to enter the password. How to use the software keyboard? I can't figure out how to get the cursor in it; the manual does not say, and I can't find the information online. Thank you.

    Hershel

    Suppose you are from Israel? Although this model is not made for the EU market, but probably for the Asian market, it looks like the European L93 series.
    You will find how to operate the software keyboard (page 52): http://www.toshiba-om.net/pdf/manual...h-Specific.pdf

  • Satellite Pro A100 - how to activate the shortcut keyboard-support on Vista?

    Hello. I've recently updated my satellite pro a100-828 to windows vista, and things work well to a large extent with two exceptions:

    1. I can't figure out how to activate the shortcut keyboard-support: media-keys to the left and the fn keys do nothing. There seems to be no shortcut keyboard-utility for windows vista in the drivers * tion. So what to do?
    2. the standby electricity utility is not available, which is good because of the power saver new vista. Except that I can't dim the screen, so the battery does not last me too long. How can I do this?

    Thanks in advance
    Best regards
    Christian

    Hello

    These problems can be solved in a few minutes. You only need the added package Toshiba. It contains the driver for the FN - key, Toshiba Power Saver and more useful tips.

    Here you can download:
    http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download drivers

    Good luck! :)

Maybe you are looking for