Record Keypress events of Virtual Keyboard in Iphone

Hi. I am working on an IOS eng language dictionary and I need to record keypress events of virtual keyboard so that I can provide users with a dropdownlist (like an autocomplete) of words. I have done it through value changed event of UITextField but I am not getting anywhere with this. Is there any solution?

Hi. I am working on an IOS eng language dictionary and I need to record keypress events of virtual keyboard so that I can provide users with a dropdownlist (like an autocomplete) of words. I have done it through value changed event of UITextField but I am not getting anywhere with this. Is there any solution?

Similar Messages

  • The iPhone Virtual Keyboard Frustrations

    I am growing frustrated with my iPhone virtual keyboard. Switching to a non-physical keyboard back in 2007 was a big step for me but I ended adapting to it pretty fast and actually found myself to be comfortable with it very fast. I, however, am starting to reconsider this as there are more and more viable options to the iPhone becoming available (think: Android!). I use 3 different languages and hence 3 different international keyboards on my iPhone on a daily basis and I must say that things are getting messier and messier. Although I have gone through the trouble of resetting my custom dictionaries many times, it seems that my French keyboard cannot spell "après" properly, it keeps auto-correcting it to "Apres" every time I type it. I tried many "tricks" but none solved this problem. I was even able to replicate this issue on other iPhones using a multiple international keyboard setup. In addition, I must say that the process of switching from one language to another is cumbersome to say the least. I'm really getting tired of typing something in English only to realize that I was using the Portuguese keyboard and that my first 5 words have already been auto-corrected to Portuguese.
    Apple really needs to solve this problem. What they should do, in my opinion, is allow the iPhone to use multiple languages at the same time and try and figure out which one the user is using after the first or four or five words they have typed.

    I find it really easy to switch between languages. All it takes is one or two tabs on the globe icon and you're set. I don't think it's a big issue. Also, you can easily tell what language you are currently on by the keyboard layout and the spelling on the space bar.
    I've tried Android phones with physical keyboards and I've found typing to be a hassle on them. iPhone is the easiest mobile phone to type on. Just my personal opinion.

  • TS3999 When I record calendar events on iPhone or iPad i can use a 24hour basis but not on my Macbook How can I change macbook calendar entries to 24 hour 'clock'

    When I record calendar events on my iphone or ipad I use a 24 clock, which is the basis on which my business runs. I cannot do the same on my Macbook, which is very frustrating and counter-intuitive (i.e. using am/pm). I asked my Apple support here in South Africa. The rep' said he could not answer immediately but would get back to me. I'm still waiting. Surely this is not a 'big' or 'unusual' problem? 

    I get 24hr everywhere not just in the dialog box
    Here's a calendar entry
    But I am not sure why you don't, let me put out a call for assisitance,

  • Will I-Tech Virtual Keyboard work with iPhone 3G??

    Hi, I was wondering if the I-Tech Virtual Keyboard (http://www.virtual-laser-keyboard.com/) would work with the iPhone 3G. Thanks!

    I went to use the MMS App I downloaded for receiving pics etc... I got a message from Apple saying it is incompatible with OS 3.0 and if I wanted to continue using it, then download 3.0 later. Right! I will get rid of MMS and get 3.0!

  • IPhone Virtual Keyboard

    iPhone virtual keyboard ***** big time!!! Is there anyway to turn off the annoying auto spell checker? I don't have a fat finger, the keyboard is too f*cking small! Couldn't Apple design it so you can text it from side ways to make the keys bigger? DUH !!!

    I find it really easy to switch between languages. All it takes is one or two tabs on the globe icon and you're set. I don't think it's a big issue. Also, you can easily tell what language you are currently on by the keyboard layout and the spelling on the space bar.
    I've tried Android phones with physical keyboards and I've found typing to be a hassle on them. iPhone is the easiest mobile phone to type on. Just my personal opinion.

  • How do I implement a virtual keyboard?  I will compensate for assistance.

    I have created a simple Adobe Air Windowed Application.  The application uses the mx:HTML controls to load a web page inside my application.  I have tried other means to load the web page but due to formatting issue, all other methods fail to load the page correctly.  Any solution will need to use the mx HTML controls.
    I have added a virtual keyboard to my project.  However, when I enter a text field and then select a key on the virtual keyboard, I lose focus on the text field.
    I understand the concept of event listeners and using a variable to store the text field id and using a focus event to gain the id of the text field.  However, I am not a programmer by no means and this is way above my head.  I am looking for someone to spend 30 or 60 minutes adding the needed code to my project so I can use the virtual keyboard.  I would be willing to send someone a gift card to their favorite restaurant as compensation.
    I have included the 4 files that make up my project (File names are in read text).
    Your help will be greatly appreciated.
    Best regards,
    Joe
    Main.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                 xmlns:s="library://ns.adobe.com/flex/spark"
                                                 xmlns:mx="library://ns.adobe.com/flex/mx"
                                                 xmlns:components="com.uibuzz.components.*"
                                                 xmlns:local="*"
                                                 xmlns:keyboard=".*"
                                                 xmlns:panel=".*"
                                                 showStatusBar="false"
                                                 alwaysInFront="true"
                                                 creationComplete="RunFunction(event)">
              <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  protected function RunFunction(event:FlexEvent):void
                                            nativeWindow.x = (Capabilities.screenResolutionX - nativeWindow.width) / 2;
                                            nativeWindow.y = (Capabilities.screenResolutionY - nativeWindow.height) / 2;
                                            // Mouse.hide();
                                            html.location = 'https://google.com';
                        ]]>
              </fx:Script>
              <fx:Script>
                        <![CDATA[
                                  // Virtual Keyboard
                                  import com.uibuzz.events.VirtualKeyboardEvent;
                                  protected function HandleKeyEvent(event:VirtualKeyboardEvent):void
                                            trace("Key pressed: " + event.keyLabel);
                        ]]>
              </fx:Script>
              <mx:HTML id="html"
                        paintsDefaultBackground="false"
                        width="100%"
                        height="100%" x="0" y="0"/>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
    <components:VirtualKeyboard x="325" y="770" KeyClicked="HandleKeyEvent(event)"/>
    </s:WindowedApplication>
    Main-app.aml
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/2.5">
    <!-- Adobe AIR Application Descriptor File Template.
              Specifies parameters for identifying, installing, and launching AIR applications.
              xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.5
                                  The last segment of the namespace specifies the version
                                  of the AIR runtime required for this application to run.
              minimumPatchLevel - The minimum patch level of the AIR runtime required to run
                                  the application. Optional.
    -->
              <!-- A universally unique application identifier. Must be unique across all AIR applications.
              Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
              <id>Main</id>
              <!-- Used as the filename for the application. Required. -->
              <filename>Virtual Keyboard</filename>
              <!-- The name that is displayed in the AIR application installer.
              May have multiple values for each language. See samples or xsd schema file. Optional. -->
              <name></name>
              <!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
              Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
              An updated version of application must have a versionNumber value higher than the previous version. Required for namespace >= 2.5 . -->
              <versionNumber>1.0.0</versionNumber>
              <!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
              <!-- <versionLabel></versionLabel> -->
              <!-- Description, displayed in the AIR application installer.
              May have multiple values for each language. See samples or xsd schema file. Optional. -->
              <!-- <description></description> -->
              <!-- Copyright information. Optional -->
              <!-- <copyright></copyright> -->
              <!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 -->
              <!-- <publisherID></publisherID> -->
              <!-- Settings for the application's initial window. Required. -->
              <initialWindow>
                        <!-- The main SWF or HTML file of the application. Required. -->
                        <!-- Note: In Flash Builder, the SWF reference is set automatically. -->
                        <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
                        <!-- The title of the main window. Optional. -->
                        <!-- <title></title> -->
                        <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
              <systemChrome>none</systemChrome>
                        <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
              <transparent>false</transparent>
                        <!-- Whether the window is initially visible. Optional. Default false. -->
              <visible>false</visible>
                        <!-- Whether the user can minimize the window. Optional. Default true. -->
              <minimizable>false</minimizable>
                        <!-- Whether the user can maximize the window. Optional. Default true. -->
              <maximizable>false</maximizable>
                        <!-- Whether the user can resize the window. Optional. Default true. -->
              <resizable>false</resizable>
                        <!-- The window's initial width in pixels. Optional. -->
              <width>1280</width>
                        <!-- The window's initial height in pixels. Optional. -->
              <height>1024</height>
                        <!-- The window's initial x position. Optional. -->
                        <!-- <x></x> -->
                        <!-- The window's initial y position. Optional. -->
                        <!-- <y></y> -->
                        <!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. -->
              <minSize>1280 1024</minSize>
              <!-- <minSize>1024 768</minSize> -->
                        <!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. -->
              <maxSize>1280 1024</maxSize>
              <!-- <maxSize>1024 768</maxSize> -->
              </initialWindow>
              <!-- We recommend omitting the supportedProfiles element, -->
              <!-- which in turn permits your application to be deployed to all -->
              <!-- devices supported by AIR. If you wish to restrict deployment -->
              <!-- (i.e., to only mobile devices) then add this element and list -->
              <!-- only the profiles which your application does support. -->
              <!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->
              <!-- The subpath of the standard default installation location to use. Optional. -->
              <!-- <installFolder></installFolder> -->
              <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
              <!-- <programMenuFolder></programMenuFolder> -->
              <!-- The icon the system uses for the application. For at least one resolution,
              specify the path to a PNG file included in the AIR package. Optional. -->
              <!-- <icon>
                        <image16x16></image16x16>
                        <image32x32></image32x32>
                        <image36x36></image36x36>
                        <image48x48></image48x48>
                        <image72x72></image72x72>
                        <image128x128></image128x128>
              </icon> -->
              <!-- Whether the application handles the update when a user double-clicks an update version
              of the AIR file (true), or the default AIR application installer handles the update (false).
              Optional. Default false. -->
              <!-- <customUpdateUI></customUpdateUI> -->
              <!-- Whether the application can be launched when the user clicks a link in a web browser.
              Optional. Default false. -->
              <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
              <!-- Listing of file types for which the application can register. Optional. -->
              <!-- <fileTypes> -->
                        <!-- Defines one file type. Optional. -->
                        <!-- <fileType> -->
                                  <!-- The name that the system displays for the registered file type. Required. -->
                                  <!-- <name></name> -->
                                  <!-- The extension to register. Required. -->
                                  <!-- <extension></extension> -->
                                  <!-- The description of the file type. Optional. -->
                                  <!-- <description></description> -->
                                  <!-- The MIME content type. -->
                                  <!-- <contentType></contentType> -->
                                  <!-- The icon to display for the file type. Optional. -->
                                  <!-- <icon>
                                            <image16x16></image16x16>
                                            <image32x32></image32x32>
                                            <image48x48></image48x48>
                                            <image128x128></image128x128>
                                  </icon> -->
                        <!-- </fileType> -->
              <!-- </fileTypes> -->
              <!-- Specify Android specific tags that get passed to AndroidManifest.xml file. -->
              <!--<android>
                        <manifestAdditions>
                        <![CDATA[
                                  <manifest android:installLocation="auto">
                                            <uses-permission android:name="android.permission.INTERNET"/>
                                            <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
                                            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
                                            <uses-configuration android:reqFiveWayNav="true"/>
                                            <supports-screens android:normalScreens="true"/>
                                            <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
                                            <application android:enabled="true">
                                                      <activity android:excludeFromRecents="false">
                                                                <intent-filter>
                                                                          <action android:name="android.intent.action.MAIN"/>
                                                                          <category android:name="android.intent.category.LAUNCHER"/>
                                                                </intent-filter>
                                                      </activity>
                                            </application>
                                  </manifest>
                        ]]>
                        </manifestAdditions>
              </android> -->
              <!-- End of the schema for adding the android specific tags in AndroidManifest.xml file -->
    </application>
    VirtualKeyboardEvent.as
    package com.uibuzz.events
        import flash.events.Event;
        public class VirtualKeyboardEvent extends Event
            public var keyLabel:String;
            public function VirtualKeyboardEvent(type:String)
                super(type);
            override public function clone():Event
                var eventObj:VirtualKeyboardEvent = new VirtualKeyboardEvent(type);
                eventObj.keyLabel = this.keyLabel;
                return eventObj;
    VirtualKeyboard.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark"
             xmlns:mx="library://ns.adobe.com/flex/mx"
             width="610" height="215" currentState="Lowercase">
              <s:layout>
                        <s:BasicLayout/>
              </s:layout>
        <fx:Metadata>
            [Event(name="KeyClicked", type="com.uibuzz.events.VirtualKeyboardEvent")]
        </fx:Metadata>
        <fx:Script>
            <![CDATA[
                import com.uibuzz.events.VirtualKeyboardEvent;
                protected function handleShiftButton(event:MouseEvent):void
                    if (this.currentState == "Lowercase")
                        this.currentState = "Uppercase";
                    else
                        this.currentState = "Lowercase";
                protected function handleButtonClick(event:MouseEvent):void
                    var e:VirtualKeyboardEvent = new VirtualKeyboardEvent("KeyClicked");
                    e.keyLabel = event.currentTarget.label;
                    dispatchEvent(e);
            ]]>
        </fx:Script>
        <s:states>
            <s:State name="Lowercase"/>
            <s:State name="Uppercase"/>
        </s:states>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
        <s:Button id="btn1" x="50" y="10" width="32" height="32" label="1"
                  click="handleButtonClick(event)"
                  label.Uppercase="!"/>
        <s:Button id="btnTilde" x="10" y="10" width="32" height="32" label="`"
                  click="handleButtonClick(event)"
                  label.Uppercase="~"/>
        <s:Button id="btn2" x="90" y="10" width="32" height="32" label="2"
                  click="handleButtonClick(event)"
                  label.Uppercase="@" fontSize.Uppercase="11"/>
        <s:Button id="btn3" x="130" y="10" width="32" height="32" label="3"
                  click="handleButtonClick(event)"
                  label.Uppercase="#"/>
        <s:Button id="btn4" x="170" y="10" width="32" height="32" label="4"
                  click="handleButtonClick(event)"
                  label.Uppercase="$"/>
        <s:Button id="btn5" x="210" y="10" width="32" height="32" label="5"
                  click="handleButtonClick(event)"
                  label.Uppercase="%"/>
        <s:Button id="btn6" x="250" y="10" width="32" height="32" label="6"
                  click="handleButtonClick(event)"
                  label.Uppercase="^"/>
        <s:Button id="btn7" x="290" y="10" width="32" height="32" label="7"
                  click="handleButtonClick(event)"
                  label.Uppercase="&amp;"/>
        <s:Button id="btn8" x="330" y="10" width="32" height="32" label="8"
                  click="handleButtonClick(event)"
                  label.Uppercase="*"/>
        <s:Button id="btn9" x="370" y="10" width="32" height="32" label="9"
                  click="handleButtonClick(event)"
                  label.Uppercase="("/>
        <s:Button id="btn0" x="410" y="10" width="32" height="32" label="0"
                  click="handleButtonClick(event)"
                  label.Uppercase=")"/>
        <s:Button id="btnMinus" x="450" y="10" width="32" height="32" label="-"
                  click="handleButtonClick(event)"
                  label.Uppercase="_"/>
        <s:Button id="btnEquals" x="490" y="10" width="32" height="32" label="="
                  click="handleButtonClick(event)"
                  label.Uppercase="+"/>
        <s:Button id="btnDelete" x="530" y="10" width="70" height="32" label="Delete" click="handleButtonClick(event)"/>
        <s:Button id="btnEnter" x="530" y="90" width="70" height="32" label="Enter" click="handleButtonClick(event)"/>
        <s:Button id="btnRightShift" x="510" y="130" width="70" height="32" label="Shift"
                  click="handleShiftButton(event)"/>
        <s:Button id="btnLeftShift" x="30" y="130" width="70" height="32" label="Shift"
                  click="handleShiftButton(event)"/>
        <s:Button id="btnTab" x="10" y="50" width="50" height="32" label="Tab" click="handleButtonClick(event)"/>
        <s:Button id="btnQ" x="70" y="50" width="32" height="32" label="q"
                  click="handleButtonClick(event)"
                  label.Uppercase="Q"/>
        <s:Button id="btnW" x="110" y="50" width="32" height="32" label="w"
                  click="handleButtonClick(event)"
                  label.Uppercase="W"/>
        <s:Button id="btnE" x="150" y="50" width="32" height="32" label="e"
                  click="handleButtonClick(event)"
                  label.Uppercase="E"/>
        <s:Button id="btnR" x="190" y="50" width="32" height="32" label="r"
                  click="handleButtonClick(event)"
                  label.Uppercase="R"/>
        <s:Button id="btnT" x="230" y="50" width="32" height="32" label="t"
                  click="handleButtonClick(event)"
                  label.Uppercase="T"/>
        <s:Button id="btnY" x="270" y="50" width="32" height="32" label="y"
                  click="handleButtonClick(event)"
                  label.Uppercase="Y"/>
        <s:Button id="btnU" x="310" y="50" width="32" height="32" label="u"
                  click="handleButtonClick(event)"
                  label.Uppercase="U"/>
        <s:Button id="btnI" x="350" y="50" width="32" height="32" label="i"
                  click="handleButtonClick(event)"
                  label.Uppercase="I"/>
        <s:Button id="btnO" x="390" y="50" width="32" height="32" label="o"
                  click="handleButtonClick(event)"
                  label.Uppercase="O"/>
        <s:Button id="btnP" x="430" y="50" width="32" height="32" label="p"
                  click="handleButtonClick(event)"
                  label.Uppercase="P"/>
        <s:Button id="btnLeftBracket" x="470" y="50" width="32" height="32" label="["
                  click="handleButtonClick(event)"
                  label.Uppercase="{"/>
        <s:Button id="btnRightBracket" x="510" y="50" width="32" height="32" label="]"
                  click="handleButtonClick(event)"
                  label.Uppercase="}"/>
        <s:Button id="btnBackSlash" x="550" y="50" width="32" height="32" label="\"
                  click="handleButtonClick(event)"
                  label.Uppercase="|"/>
        <s:Button id="btnA" x="90" y="90" width="32" height="32" label="a"
                  click="handleButtonClick(event)"
                  label.Uppercase="A"/>
        <s:Button id="btnS" x="130" y="90" width="32" height="32" label="s"
                  click="handleButtonClick(event)"
                  label.Uppercase="S"/>
        <s:Button id="btnD" x="170" y="90" width="32" height="32" label="d"
                  click="handleButtonClick(event)"
                  label.Uppercase="D"/>
        <s:Button id="btnF" x="210" y="90" width="32" height="32" label="f"
                  click="handleButtonClick(event)"
                  label.Uppercase="F"/>
        <s:Button id="btnG" x="250" y="90" width="32" height="32" label="g"
                  click="handleButtonClick(event)"
                  label.Uppercase="G"/>
        <s:Button id="btnH" x="290" y="90" width="32" height="32" label="h"
                  click="handleButtonClick(event)"
                  label.Uppercase="H"/>
        <s:Button id="btnJ" x="330" y="90" width="32" height="32" label="j"
                  click="handleButtonClick(event)"
                  label.Uppercase="J"/>
        <s:Button id="btnK" x="370" y="90" width="32" height="32" label="k"
                  click="handleButtonClick(event)"
                  label.Uppercase="K"/>
        <s:Button id="btnL" x="410" y="90" width="32" height="32" label="l"
                  click="handleButtonClick(event)"
                  label.Uppercase="L"/>
        <s:Button id="btnSemiColon" x="450" y="90" width="32" height="32" label=";"
                  click="handleButtonClick(event)"
                  label.Uppercase=":"/>
        <s:Button id="btnQuote" x="490" y="90" width="32" height="32" label="'"
                  click="handleButtonClick(event)"
                  label.Uppercase="&quot;"/>
        <s:Button id="btnZ" x="110" y="130" width="32" height="32" label="z"
                  click="handleButtonClick(event)"
                  label.Uppercase="Z"/>
        <s:Button id="btnX" x="150" y="130" width="32" height="32" label="x"
                  click="handleButtonClick(event)"
                  label.Uppercase="X"/>
        <s:Button id="btnC" x="190" y="130" width="32" height="32" label="c"
                  click="handleButtonClick(event)"
                  label.Uppercase="C"/>
        <s:Button id="btnV" x="230" y="130" width="32" height="32" label="v"
                  click="handleButtonClick(event)"
                  label.Uppercase="V"/>
        <s:Button id="btnB" x="270" y="130" width="32" height="32" label="b"
                  click="handleButtonClick(event)"
                  label.Uppercase="B"/>
        <s:Button id="btnSpace" x="150" y="170" width="272" height="32" label="Space" click="handleButtonClick(event)"/>
        <s:Button id="btnN" x="310" y="130" width="32" height="32" label="n"
                  click="handleButtonClick(event)"
                  label.Uppercase="N"/>
        <s:Button id="btnM" x="350" y="130" width="32" height="32" label="m"
                  click="handleButtonClick(event)"
                  label.Uppercase="M"/>
        <s:Button id="btnComma" x="390" y="130" width="32" height="32" label=","
                  click="handleButtonClick(event)"
                  label.Uppercase="&lt;"/>
        <s:Button id="btnStop" x="430" y="130" width="32" height="32" label="."
                  click="handleButtonClick(event)"
                  label.Uppercase="&gt;"/>
        <s:Button id="btnForwardSlash" x="470" y="130" width="32" height="32" label="/"
                  click="handleButtonClick(event)"
                  label.Uppercase="?"/>
    </s:Group>

    I have created a simple Adobe Air Windowed Application.  The application uses the mx:HTML controls to load a web page inside my application.  I have tried other means to load the web page but due to formatting issue, all other methods fail to load the page correctly.  Any solution will need to use the mx HTML controls.
    I have added a virtual keyboard to my project.  However, when I enter a text field and then select a key on the virtual keyboard, I lose focus on the text field.
    I understand the concept of event listeners and using a variable to store the text field id and using a focus event to gain the id of the text field.  However, I am not a programmer by no means and this is way above my head.  I am looking for someone to spend 30 or 60 minutes adding the needed code to my project so I can use the virtual keyboard.  I would be willing to send someone a gift card to their favorite restaurant as compensation.
    I have included the 4 files that make up my project (File names are in read text).
    Your help will be greatly appreciated.
    Best regards,
    Joe
    Main.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                 xmlns:s="library://ns.adobe.com/flex/spark"
                                                 xmlns:mx="library://ns.adobe.com/flex/mx"
                                                 xmlns:components="com.uibuzz.components.*"
                                                 xmlns:local="*"
                                                 xmlns:keyboard=".*"
                                                 xmlns:panel=".*"
                                                 showStatusBar="false"
                                                 alwaysInFront="true"
                                                 creationComplete="RunFunction(event)">
              <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  protected function RunFunction(event:FlexEvent):void
                                            nativeWindow.x = (Capabilities.screenResolutionX - nativeWindow.width) / 2;
                                            nativeWindow.y = (Capabilities.screenResolutionY - nativeWindow.height) / 2;
                                            // Mouse.hide();
                                            html.location = 'https://google.com';
                        ]]>
              </fx:Script>
              <fx:Script>
                        <![CDATA[
                                  // Virtual Keyboard
                                  import com.uibuzz.events.VirtualKeyboardEvent;
                                  protected function HandleKeyEvent(event:VirtualKeyboardEvent):void
                                            trace("Key pressed: " + event.keyLabel);
                        ]]>
              </fx:Script>
              <mx:HTML id="html"
                        paintsDefaultBackground="false"
                        width="100%"
                        height="100%" x="0" y="0"/>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
    <components:VirtualKeyboard x="325" y="770" KeyClicked="HandleKeyEvent(event)"/>
    </s:WindowedApplication>
    Main-app.aml
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/2.5">
    <!-- Adobe AIR Application Descriptor File Template.
              Specifies parameters for identifying, installing, and launching AIR applications.
              xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.5
                                  The last segment of the namespace specifies the version
                                  of the AIR runtime required for this application to run.
              minimumPatchLevel - The minimum patch level of the AIR runtime required to run
                                  the application. Optional.
    -->
              <!-- A universally unique application identifier. Must be unique across all AIR applications.
              Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
              <id>Main</id>
              <!-- Used as the filename for the application. Required. -->
              <filename>Virtual Keyboard</filename>
              <!-- The name that is displayed in the AIR application installer.
              May have multiple values for each language. See samples or xsd schema file. Optional. -->
              <name></name>
              <!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
              Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
              An updated version of application must have a versionNumber value higher than the previous version. Required for namespace >= 2.5 . -->
              <versionNumber>1.0.0</versionNumber>
              <!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
              <!-- <versionLabel></versionLabel> -->
              <!-- Description, displayed in the AIR application installer.
              May have multiple values for each language. See samples or xsd schema file. Optional. -->
              <!-- <description></description> -->
              <!-- Copyright information. Optional -->
              <!-- <copyright></copyright> -->
              <!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 -->
              <!-- <publisherID></publisherID> -->
              <!-- Settings for the application's initial window. Required. -->
              <initialWindow>
                        <!-- The main SWF or HTML file of the application. Required. -->
                        <!-- Note: In Flash Builder, the SWF reference is set automatically. -->
                        <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
                        <!-- The title of the main window. Optional. -->
                        <!-- <title></title> -->
                        <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
              <systemChrome>none</systemChrome>
                        <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
              <transparent>false</transparent>
                        <!-- Whether the window is initially visible. Optional. Default false. -->
              <visible>false</visible>
                        <!-- Whether the user can minimize the window. Optional. Default true. -->
              <minimizable>false</minimizable>
                        <!-- Whether the user can maximize the window. Optional. Default true. -->
              <maximizable>false</maximizable>
                        <!-- Whether the user can resize the window. Optional. Default true. -->
              <resizable>false</resizable>
                        <!-- The window's initial width in pixels. Optional. -->
              <width>1280</width>
                        <!-- The window's initial height in pixels. Optional. -->
              <height>1024</height>
                        <!-- The window's initial x position. Optional. -->
                        <!-- <x></x> -->
                        <!-- The window's initial y position. Optional. -->
                        <!-- <y></y> -->
                        <!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. -->
              <minSize>1280 1024</minSize>
              <!-- <minSize>1024 768</minSize> -->
                        <!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. -->
              <maxSize>1280 1024</maxSize>
              <!-- <maxSize>1024 768</maxSize> -->
              </initialWindow>
              <!-- We recommend omitting the supportedProfiles element, -->
              <!-- which in turn permits your application to be deployed to all -->
              <!-- devices supported by AIR. If you wish to restrict deployment -->
              <!-- (i.e., to only mobile devices) then add this element and list -->
              <!-- only the profiles which your application does support. -->
              <!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->
              <!-- The subpath of the standard default installation location to use. Optional. -->
              <!-- <installFolder></installFolder> -->
              <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
              <!-- <programMenuFolder></programMenuFolder> -->
              <!-- The icon the system uses for the application. For at least one resolution,
              specify the path to a PNG file included in the AIR package. Optional. -->
              <!-- <icon>
                        <image16x16></image16x16>
                        <image32x32></image32x32>
                        <image36x36></image36x36>
                        <image48x48></image48x48>
                        <image72x72></image72x72>
                        <image128x128></image128x128>
              </icon> -->
              <!-- Whether the application handles the update when a user double-clicks an update version
              of the AIR file (true), or the default AIR application installer handles the update (false).
              Optional. Default false. -->
              <!-- <customUpdateUI></customUpdateUI> -->
              <!-- Whether the application can be launched when the user clicks a link in a web browser.
              Optional. Default false. -->
              <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
              <!-- Listing of file types for which the application can register. Optional. -->
              <!-- <fileTypes> -->
                        <!-- Defines one file type. Optional. -->
                        <!-- <fileType> -->
                                  <!-- The name that the system displays for the registered file type. Required. -->
                                  <!-- <name></name> -->
                                  <!-- The extension to register. Required. -->
                                  <!-- <extension></extension> -->
                                  <!-- The description of the file type. Optional. -->
                                  <!-- <description></description> -->
                                  <!-- The MIME content type. -->
                                  <!-- <contentType></contentType> -->
                                  <!-- The icon to display for the file type. Optional. -->
                                  <!-- <icon>
                                            <image16x16></image16x16>
                                            <image32x32></image32x32>
                                            <image48x48></image48x48>
                                            <image128x128></image128x128>
                                  </icon> -->
                        <!-- </fileType> -->
              <!-- </fileTypes> -->
              <!-- Specify Android specific tags that get passed to AndroidManifest.xml file. -->
              <!--<android>
                        <manifestAdditions>
                        <![CDATA[
                                  <manifest android:installLocation="auto">
                                            <uses-permission android:name="android.permission.INTERNET"/>
                                            <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
                                            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
                                            <uses-configuration android:reqFiveWayNav="true"/>
                                            <supports-screens android:normalScreens="true"/>
                                            <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
                                            <application android:enabled="true">
                                                      <activity android:excludeFromRecents="false">
                                                                <intent-filter>
                                                                          <action android:name="android.intent.action.MAIN"/>
                                                                          <category android:name="android.intent.category.LAUNCHER"/>
                                                                </intent-filter>
                                                      </activity>
                                            </application>
                                  </manifest>
                        ]]>
                        </manifestAdditions>
              </android> -->
              <!-- End of the schema for adding the android specific tags in AndroidManifest.xml file -->
    </application>
    VirtualKeyboardEvent.as
    package com.uibuzz.events
        import flash.events.Event;
        public class VirtualKeyboardEvent extends Event
            public var keyLabel:String;
            public function VirtualKeyboardEvent(type:String)
                super(type);
            override public function clone():Event
                var eventObj:VirtualKeyboardEvent = new VirtualKeyboardEvent(type);
                eventObj.keyLabel = this.keyLabel;
                return eventObj;
    VirtualKeyboard.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark"
             xmlns:mx="library://ns.adobe.com/flex/mx"
             width="610" height="215" currentState="Lowercase">
              <s:layout>
                        <s:BasicLayout/>
              </s:layout>
        <fx:Metadata>
            [Event(name="KeyClicked", type="com.uibuzz.events.VirtualKeyboardEvent")]
        </fx:Metadata>
        <fx:Script>
            <![CDATA[
                import com.uibuzz.events.VirtualKeyboardEvent;
                protected function handleShiftButton(event:MouseEvent):void
                    if (this.currentState == "Lowercase")
                        this.currentState = "Uppercase";
                    else
                        this.currentState = "Lowercase";
                protected function handleButtonClick(event:MouseEvent):void
                    var e:VirtualKeyboardEvent = new VirtualKeyboardEvent("KeyClicked");
                    e.keyLabel = event.currentTarget.label;
                    dispatchEvent(e);
            ]]>
        </fx:Script>
        <s:states>
            <s:State name="Lowercase"/>
            <s:State name="Uppercase"/>
        </s:states>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
        <s:Button id="btn1" x="50" y="10" width="32" height="32" label="1"
                  click="handleButtonClick(event)"
                  label.Uppercase="!"/>
        <s:Button id="btnTilde" x="10" y="10" width="32" height="32" label="`"
                  click="handleButtonClick(event)"
                  label.Uppercase="~"/>
        <s:Button id="btn2" x="90" y="10" width="32" height="32" label="2"
                  click="handleButtonClick(event)"
                  label.Uppercase="@" fontSize.Uppercase="11"/>
        <s:Button id="btn3" x="130" y="10" width="32" height="32" label="3"
                  click="handleButtonClick(event)"
                  label.Uppercase="#"/>
        <s:Button id="btn4" x="170" y="10" width="32" height="32" label="4"
                  click="handleButtonClick(event)"
                  label.Uppercase="$"/>
        <s:Button id="btn5" x="210" y="10" width="32" height="32" label="5"
                  click="handleButtonClick(event)"
                  label.Uppercase="%"/>
        <s:Button id="btn6" x="250" y="10" width="32" height="32" label="6"
                  click="handleButtonClick(event)"
                  label.Uppercase="^"/>
        <s:Button id="btn7" x="290" y="10" width="32" height="32" label="7"
                  click="handleButtonClick(event)"
                  label.Uppercase="&amp;"/>
        <s:Button id="btn8" x="330" y="10" width="32" height="32" label="8"
                  click="handleButtonClick(event)"
                  label.Uppercase="*"/>
        <s:Button id="btn9" x="370" y="10" width="32" height="32" label="9"
                  click="handleButtonClick(event)"
                  label.Uppercase="("/>
        <s:Button id="btn0" x="410" y="10" width="32" height="32" label="0"
                  click="handleButtonClick(event)"
                  label.Uppercase=")"/>
        <s:Button id="btnMinus" x="450" y="10" width="32" height="32" label="-"
                  click="handleButtonClick(event)"
                  label.Uppercase="_"/>
        <s:Button id="btnEquals" x="490" y="10" width="32" height="32" label="="
                  click="handleButtonClick(event)"
                  label.Uppercase="+"/>
        <s:Button id="btnDelete" x="530" y="10" width="70" height="32" label="Delete" click="handleButtonClick(event)"/>
        <s:Button id="btnEnter" x="530" y="90" width="70" height="32" label="Enter" click="handleButtonClick(event)"/>
        <s:Button id="btnRightShift" x="510" y="130" width="70" height="32" label="Shift"
                  click="handleShiftButton(event)"/>
        <s:Button id="btnLeftShift" x="30" y="130" width="70" height="32" label="Shift"
                  click="handleShiftButton(event)"/>
        <s:Button id="btnTab" x="10" y="50" width="50" height="32" label="Tab" click="handleButtonClick(event)"/>
        <s:Button id="btnQ" x="70" y="50" width="32" height="32" label="q"
                  click="handleButtonClick(event)"
                  label.Uppercase="Q"/>
        <s:Button id="btnW" x="110" y="50" width="32" height="32" label="w"
                  click="handleButtonClick(event)"
                  label.Uppercase="W"/>
        <s:Button id="btnE" x="150" y="50" width="32" height="32" label="e"
                  click="handleButtonClick(event)"
                  label.Uppercase="E"/>
        <s:Button id="btnR" x="190" y="50" width="32" height="32" label="r"
                  click="handleButtonClick(event)"
                  label.Uppercase="R"/>
        <s:Button id="btnT" x="230" y="50" width="32" height="32" label="t"
                  click="handleButtonClick(event)"
                  label.Uppercase="T"/>
        <s:Button id="btnY" x="270" y="50" width="32" height="32" label="y"
                  click="handleButtonClick(event)"
                  label.Uppercase="Y"/>
        <s:Button id="btnU" x="310" y="50" width="32" height="32" label="u"
                  click="handleButtonClick(event)"
                  label.Uppercase="U"/>
        <s:Button id="btnI" x="350" y="50" width="32" height="32" label="i"
                  click="handleButtonClick(event)"
                  label.Uppercase="I"/>
        <s:Button id="btnO" x="390" y="50" width="32" height="32" label="o"
                  click="handleButtonClick(event)"
                  label.Uppercase="O"/>
        <s:Button id="btnP" x="430" y="50" width="32" height="32" label="p"
                  click="handleButtonClick(event)"
                  label.Uppercase="P"/>
        <s:Button id="btnLeftBracket" x="470" y="50" width="32" height="32" label="["
                  click="handleButtonClick(event)"
                  label.Uppercase="{"/>
        <s:Button id="btnRightBracket" x="510" y="50" width="32" height="32" label="]"
                  click="handleButtonClick(event)"
                  label.Uppercase="}"/>
        <s:Button id="btnBackSlash" x="550" y="50" width="32" height="32" label="\"
                  click="handleButtonClick(event)"
                  label.Uppercase="|"/>
        <s:Button id="btnA" x="90" y="90" width="32" height="32" label="a"
                  click="handleButtonClick(event)"
                  label.Uppercase="A"/>
        <s:Button id="btnS" x="130" y="90" width="32" height="32" label="s"
                  click="handleButtonClick(event)"
                  label.Uppercase="S"/>
        <s:Button id="btnD" x="170" y="90" width="32" height="32" label="d"
                  click="handleButtonClick(event)"
                  label.Uppercase="D"/>
        <s:Button id="btnF" x="210" y="90" width="32" height="32" label="f"
                  click="handleButtonClick(event)"
                  label.Uppercase="F"/>
        <s:Button id="btnG" x="250" y="90" width="32" height="32" label="g"
                  click="handleButtonClick(event)"
                  label.Uppercase="G"/>
        <s:Button id="btnH" x="290" y="90" width="32" height="32" label="h"
                  click="handleButtonClick(event)"
                  label.Uppercase="H"/>
        <s:Button id="btnJ" x="330" y="90" width="32" height="32" label="j"
                  click="handleButtonClick(event)"
                  label.Uppercase="J"/>
        <s:Button id="btnK" x="370" y="90" width="32" height="32" label="k"
                  click="handleButtonClick(event)"
                  label.Uppercase="K"/>
        <s:Button id="btnL" x="410" y="90" width="32" height="32" label="l"
                  click="handleButtonClick(event)"
                  label.Uppercase="L"/>
        <s:Button id="btnSemiColon" x="450" y="90" width="32" height="32" label=";"
                  click="handleButtonClick(event)"
                  label.Uppercase=":"/>
        <s:Button id="btnQuote" x="490" y="90" width="32" height="32" label="'"
                  click="handleButtonClick(event)"
                  label.Uppercase="&quot;"/>
        <s:Button id="btnZ" x="110" y="130" width="32" height="32" label="z"
                  click="handleButtonClick(event)"
                  label.Uppercase="Z"/>
        <s:Button id="btnX" x="150" y="130" width="32" height="32" label="x"
                  click="handleButtonClick(event)"
                  label.Uppercase="X"/>
        <s:Button id="btnC" x="190" y="130" width="32" height="32" label="c"
                  click="handleButtonClick(event)"
                  label.Uppercase="C"/>
        <s:Button id="btnV" x="230" y="130" width="32" height="32" label="v"
                  click="handleButtonClick(event)"
                  label.Uppercase="V"/>
        <s:Button id="btnB" x="270" y="130" width="32" height="32" label="b"
                  click="handleButtonClick(event)"
                  label.Uppercase="B"/>
        <s:Button id="btnSpace" x="150" y="170" width="272" height="32" label="Space" click="handleButtonClick(event)"/>
        <s:Button id="btnN" x="310" y="130" width="32" height="32" label="n"
                  click="handleButtonClick(event)"
                  label.Uppercase="N"/>
        <s:Button id="btnM" x="350" y="130" width="32" height="32" label="m"
                  click="handleButtonClick(event)"
                  label.Uppercase="M"/>
        <s:Button id="btnComma" x="390" y="130" width="32" height="32" label=","
                  click="handleButtonClick(event)"
                  label.Uppercase="&lt;"/>
        <s:Button id="btnStop" x="430" y="130" width="32" height="32" label="."
                  click="handleButtonClick(event)"
                  label.Uppercase="&gt;"/>
        <s:Button id="btnForwardSlash" x="470" y="130" width="32" height="32" label="/"
                  click="handleButtonClick(event)"
                  label.Uppercase="?"/>
    </s:Group>

  • Yoga 2 Pro No Virtual Keyboard in Tablet Mode?

    I can't find a way to get a virtual keyboard to come up when Yoga 2 Pro is in tablet mode...even when I click on a search box in my browser or any other text box nothing comes up. Is there a way to make a touch keyboard come up so you can still type?
    Many thanks!

    Hi. Here it is. I tried to record the off/on process of this problem. On the seond part i typing in notepad and you can see interuption of letters. 
    https://yadi.sk/i/3GBZepRabSEpf
    Problem is still not solved

  • How to enter text in text input box using virtual keyboard in flex application

    Re: how to enter text in text input box using virtual keyboard in flex application
    hi,
    im using flash builder 4,
    i  designed virtual keyboard, i have to update the text in text input box  continously by using virtual keyboard.
    i used button events.i did  some mistake there.
    can some one help me out of tat.
    thanks  in advance.
    i have included my mxml program with this.
    virtualkeyboard.mxml
    <?xml  version="1.0" encoding="utf-8"?>
    <s:Application  xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"  minHeight="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 function 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;
                       default:
                           //textbox.text="s";
                            textbox.text=b+"s";
            ]]>
        </fx:Script>
        <s:Panel  x="43" y="82" width="527" height="213">
          <mx:Button  x="71" y="86" id="b1" label="1" width="30" height="24"/>
             <s:Button x="180" y="86"  id="b2" label="5" width="30"  height="24"/>
            <s:Button x="127" y="86"  id="b3"  label="3" width="30" height="24"/>
            <s:Button x="99"  y="86"  id="b4" label="2" width="30" height="24"/>
             <s:Button x="323" y="86"  id="b5" label="0" width="30"  height="24"/>
            <s:Button x="294" y="86"  id="b6"  label="9" width="30" height="24"/>
            <s:Button x="265"  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 x="209" y="86"  id="b9"  label="6" width="30" height="24"/>
            <s:Button x="42"  y="86"  id="b10" label="`" width="30" height="24"/>
             <s:Button x="382" y="86" id="b11" label="=" width="30"  height="24"/>
            <s:Button x="353" y="86"  id="b12"  label="-" width="30" height="24"/>
            <s:Button x="410"  y="86"  id="b13" label="back" width="76" height="24"/>
             <s:Button x="157" y="86"  id="b14" label="4" width="30"  height="24"/>
            <s:Button x="43" y="109" id="b15"  label="tab" width="66" height="24"/>
            <s:Button x="105"  y="109"  id="b16" label="q" width="31" height="24"/>
             <s:Button x="247" y="109"  id="b17" label="y" width="30"  height="24"/>
            <s:Button x="303" y="109"  id="b18"  label="i" width="31" height="24"/>
            <s:Button x="361"  y="110"  id="b19" label="p" width="34" height="23"/>
             <s:Button x="394" y="109"  id="b20" label="[" width="31"  height="24"/>
            <s:Button x="191" y="109"  id="b21"  label="r" width="34" height="24"/>
            <s:Button x="424"  y="109"  id="b22" label="]" width="31" height="24"/>
             <s:Button x="222" y="109"  id="b23" label="t" width="31"  height="24"/>
            <s:Button x="161" y="109"  id="b24"  label="e" width="31" height="24"/>
            <s:Button x="133"  y="109"  id="b25" label="w" width="31" height="24"/>
             <s:Button x="332" y="109"  id="b26" label="o" width="31"  height="24"/>
            <s:Button x="275" y="109"  id="b27"  label="u" width="31" height="24"/>
            <s:Button x="220"  y="133"  id="b28" label="g" width="31" height="24"/>
             <s:Button x="424" y="132"  id="b29" label="enter" width="62"  height="24"/>
            <s:Button x="43" y="132"  id="b30"  label="caps" width="66" height="24"/>
            <s:Button x="275"  y="133"  id="b31" label="j" width="42" height="23"/>
             <s:Button x="314" y="132"  id="b32" label="k" width="31"  height="24"/>
            <s:Button x="133" y="133"  id="b33"  label="s" width="31" height="23"/>
            <s:Button x="161"  y="133"  id="b34" label="d" width="31" height="23"/>
             <s:Button x="250" y="133"  id="b35" label="h" width="31"  height="23"/>
            <s:Button x="105" y="133"  id="b36"  label="a" width="31" height="23"/>
            <s:Button x="191"  y="133"  id="b37" label="f" width="31" height="23"/>
             <s:Button x="342" y="132"  id="b38" label="l" width="31"  height="24"/>
            <s:Button x="152" y="154"  id="b39"  label="x" width="31" height="24"/>
            <s:Button x="353"  y="154"  id="b40" label="." width="31" height="24"/>
             <s:Button x="325" y="154"  id="b41" label="," width="31"  height="24"/>
            <s:Button x="294" y="154"  id="b42"  label="m" width="31" height="24"/>
            <s:Button x="259"  y="154"  id="b43" label="n" width="37" height="24"/>
             <s:Button x="236" y="154"  id="b44" label="b" width="31"  height="24"/>
            <s:Button x="211" y="154"  id="b45"  label="v" width="31" height="24"/>
            <s:Button x="181"  y="154"  id="b46" label="c" width="31" height="24"/>
             <s:Button x="122" y="154"  id="b47" label="z" width="31"  height="24"/>
            <s:Button x="380" y="154"  id="b48"  label="/" width="31" height="24"/>
            <s:Button x="368"  y="132"  id="b49" label=";" width="31" height="24"/>
             <s:Button x="396" y="132"  id="b50" label="'" width="31"  height="24"/>
            <s:Button x="43" y="154"  id="b51"  label="shift" width="82" height="24"/>
            <s:Button  x="407" y="154" id="b52" label="shift" width="79" height="24"/>
             <s:Button x="455" y="109"  id="b53" label="\" width="31"  height="24"/>
        </s:Panel>
        <s:TextInput  x="161" y="27" id="textbox" width="253"/>
    </s:Application>
    regards,
    saran r

    hi,
    how to code for these buttons "control,alt,delete,insert and spacebar".
    can u help me how to program?
    i have attached the mxml code with this,
    virtualkeypad1.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   creationComplete="application1_creationCompleteHandler(event)" viewSourceURL="srcview/index.html">
        <fx:Script>
            <![CDATA[
                import flash.utils.getQualifiedSuperclassName;
                import mx.events.FlexEvent;
                private var inpText:String = 'inp1';
                private var shiftState:Boolean = false;
                private var capsState:Boolean = false;
                protected function keyboard_clickHandler(event:MouseEvent):void
                    this[inpText].text = this[inpText].text+(event.currentTarget as Button).label;
                    if (shiftState == true) shift_clickHandler(null);
                protected function caps_clickHandler(event:MouseEvent):void
                    capsState = !capsState;
                    if (capsState == true)
                        currentState = "SHIFTED" else currentState = "PRIMARY";
                protected function tab_clickHandler(event:MouseEvent):void
                    this[inpText].text = this[inpText].text+"    ";
                protected function shift_clickHandler(event:MouseEvent):void
                    shiftState = !shiftState;
                    if (shiftState == true)
                        currentState = "SHIFTED" else currentState = "PRIMARY";
                protected function enter_clickHandler(event:MouseEvent):void
                    this[inpText].text = this[inpText].text+"\n";
                protected function backspace_clickHandler(event:MouseEvent):void
                    var tmpStr:String = this[inpText].text;
                    this[inpText].text = tmpStr.substr(0,tmpStr.length-1);
                protected function application1_creationCompleteHandler(event:FlexEvent):void
                    inp1.setFocus();               
                protected function focus_enterHandler(event:MouseEvent):void
                    inpText = event.currentTarget.id;
            ]]>
        </fx:Script>
        <s:states>
            <s:State name="PRIMARY"/>
            <s:State name="SHIFTED"/>
        </s:states>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:TextInput id="inp1" y="36" width="151" horizontalCenter="0" click="focus_enterHandler(event)" y.PRIMARY="239" horizontalCenter.PRIMARY="42" width.PRIMARY="199" height.PRIMARY="31"/>
        <s:Group id="keyboard" width="661" height="184" horizontalCenter="0" y="300" focusEnabled="false">
            <s:Button x="5" y="5" label="~" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="`"/>
            <s:Button x="49" y="5" label="!" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="1"/>
            <s:Button x="93" y="5" label="@" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="2"/>
            <s:Button x="137" y="5" label="#" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="3"/>
            <s:Button x="181" y="5" label="$" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="4"/>
            <s:Button x="225" y="5" label="%" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="5"/>
            <s:Button x="269" y="5" label="^" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="6"/>
            <s:Button x="313" y="5" label="&amp;" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="7"/>
            <s:Button x="357" y="5" label="*" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="8"/>
            <s:Button x="401" y="5" label="(" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="9"/>
            <s:Button x="445" y="5" label=")" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="0"/>
            <s:Button x="489" y="5" label="_" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="-"/>
            <s:Button x="533" y="5" label="+" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="="/>
            <s:Button x="577" y="5" label="Backspace" height="43" width="80" fontSize="11" fontWeight="bold" click="backspace_clickHandler(event)"/>
            <s:Button x="5" y="48" label="Tab" height="43" width="67" fontSize="12" fontWeight="bold" click="tab_clickHandler(event)"/>
            <s:Button x="72" y="48" label="Q" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="q"/>
            <s:Button x="116" y="48" label="W" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="w"/>
            <s:Button x="160" y="48" label="E" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="e"/>
            <s:Button x="204" y="48" label="R" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="r"/>
            <s:Button x="248" y="48" label="T" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="t"/>
            <s:Button x="292" y="48" label="Y" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="y"/>
            <s:Button x="336" y="48" label="U" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="u"/>
            <s:Button x="380" y="48" label="I" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="i"/>
            <s:Button x="424" y="48" label="O" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="o"/>
            <s:Button x="468" y="48" label="P" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="p"/>
            <s:Button x="512" y="48" label="{" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="["/>
            <s:Button x="556" y="48" label="}" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="]"/>
            <s:Button x="600" y="48" label="|" height="43" width="57" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="\"/>
            <s:Button x="5" y="91" label="CapsLock" height="43" width="80" fontSize="12" fontWeight="bold" click="caps_clickHandler(event)"/>
            <s:Button x="85" y="91" label="A" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="a"/>
            <s:Button x="129" y="91" label="S" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="s"/>
            <s:Button x="173" y="91" label="D" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="d"/>
            <s:Button x="217" y="91" label="F" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="f"/>
            <s:Button x="261" y="91" label="G" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="g"/>
            <s:Button x="305" y="91" label="H" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="h"/>
            <s:Button x="349" y="91" label="J" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="j"/>
            <s:Button x="393" y="91" label="K" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="k"/>
            <s:Button x="437" y="91" label="L" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="l"/>
            <s:Button x="481" y="91" label=":" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY=";"/>
            <s:Button x="525" y="91" label="&quot;" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="'"/>
            <s:Button x="569" y="91" label="Enter" height="43" width="88" fontSize="24" fontWeight="bold" click="enter_clickHandler(event)"/>
            <s:Button x="5" y="134" label="Shift" height="43" width="106" fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
            <s:Button x="111" y="134" label="Z" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="z"/>
            <s:Button x="155" y="134" label="X" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="x"/>
            <s:Button x="199" y="134" label="C" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="c"/>
            <s:Button x="243" y="134" label="V" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="v"/>
            <s:Button x="287" y="134" label="B" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="b"/>
            <s:Button x="331" y="134" label="N" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="n"/>
            <s:Button x="375" y="134" label="M" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="m"/>
            <s:Button x="419" y="134" label="&lt;" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY=","/>
            <s:Button x="463" y="134" label="&gt;" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="."/>
            <s:Button x="507" y="134" label="?" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="/"/>
            <s:Button x="551" y="134" label="Shift" height="43" width="106" fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
        </s:Group>
    </s:Application>
    thanks in advance,
    saran r

  • How to use virtual keyboard in flex application

    hi..
    i am using flash builder 4,
    how to use virtual keyboard in flex?
    if any one aware of this pls reply me.......
    saran r

    hi,
    how to code for these buttons  "control,alt,delete,insert and spacebar".
    can u help me  how to program?
    i have attached the mxml code with this,
    virtualkeypad1.mxml
    <?xml  version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"  minHeight="600"
                     creationComplete="application1_creationCompleteHandler(event)"  viewSourceURL="srcview/index.html">
         <fx:Script>
             <![CDATA[
                 import flash.utils.getQualifiedSuperclassName;
                 import mx.events.FlexEvent;
                 private var inpText:String = 'inp1';
                 private var shiftState:Boolean = false;
                 private var capsState:Boolean = false;
                 protected function  keyboard_clickHandler(event:MouseEvent):void
                     this[inpText].text =  this[inpText].text+(event.currentTarget as Button).label;
                     if (shiftState == true) shift_clickHandler(null);
                 protected function caps_clickHandler(event:MouseEvent):void
                     capsState = !capsState;
                     if (capsState == true)
                         currentState = "SHIFTED" else currentState =  "PRIMARY";
                 protected function tab_clickHandler(event:MouseEvent):void
                     this[inpText].text = this[inpText].text+"    ";
                 protected function shift_clickHandler(event:MouseEvent):void
                     shiftState = !shiftState;
                     if (shiftState == true)
                         currentState = "SHIFTED" else currentState =  "PRIMARY";
                 protected function enter_clickHandler(event:MouseEvent):void
                     this[inpText].text = this[inpText].text+"\n";
                 protected function  backspace_clickHandler(event:MouseEvent):void
                     var tmpStr:String = this[inpText].text;
                     this[inpText].text = tmpStr.substr(0,tmpStr.length-1);
                 protected function  application1_creationCompleteHandler(event:FlexEvent):void
                     inp1.setFocus();               
                 protected function focus_enterHandler(event:MouseEvent):void
                     inpText = event.currentTarget.id;
             ]]>
         </fx:Script>
         <s:states>
             <s:State name="PRIMARY"/>
             <s:State name="SHIFTED"/>
         </s:states>
         <fx:Declarations>
             <!-- Place non-visual elements (e.g., services, value  objects) here -->
         </fx:Declarations>
         <s:TextInput id="inp1" y="36" width="151" horizontalCenter="0"  click="focus_enterHandler(event)" y.PRIMARY="239"  horizontalCenter.PRIMARY="42" width.PRIMARY="199"  height.PRIMARY="31"/>
         <s:Group id="keyboard" width="661" height="184"  horizontalCenter="0" y="300" focusEnabled="false">
             <s:Button x="5" y="5" label="~" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="`"/>
             <s:Button x="49" y="5" label="!" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="1"/>
             <s:Button x="93" y="5" label="@" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="2"/>
             <s:Button x="137" y="5" label="#" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="3"/>
             <s:Button x="181" y="5" label="$" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="4"/>
             <s:Button x="225" y="5" label="%" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="5"/>
             <s:Button x="269" y="5" label="^" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="6"/>
             <s:Button x="313" y="5" label="&amp;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY="7"/>
             <s:Button x="357" y="5" label="*" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="8"/>
             <s:Button x="401" y="5" label="(" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="9"/>
             <s:Button x="445" y="5" label=")" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="0"/>
             <s:Button x="489" y="5" label="_" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="-"/>
             <s:Button x="533" y="5" label="+" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="="/>
             <s:Button x="577" y="5" label="Backspace" height="43"  width="80" fontSize="11" fontWeight="bold"  click="backspace_clickHandler(event)"/>
             <s:Button x="5" y="48" label="Tab" height="43" width="67"  fontSize="12" fontWeight="bold" click="tab_clickHandler(event)"/>
             <s:Button x="72" y="48" label="Q" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="q"/>
             <s:Button x="116" y="48" label="W" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="w"/>
             <s:Button x="160" y="48" label="E" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="e"/>
             <s:Button x="204" y="48" label="R" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="r"/>
             <s:Button x="248" y="48" label="T" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="t"/>
             <s:Button x="292" y="48" label="Y" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="y"/>
             <s:Button x="336" y="48" label="U" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="u"/>
             <s:Button x="380" y="48" label="I" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="i"/>
             <s:Button x="424" y="48" label="O" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="o"/>
             <s:Button x="468" y="48" label="P" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="p"/>
             <s:Button x="512" y="48" label="{" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="["/>
             <s:Button x="556" y="48" label="}" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="]"/>
             <s:Button x="600" y="48" label="|" height="43" width="57"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="\"/>
             <s:Button x="5" y="91" label="CapsLock" height="43"  width="80" fontSize="12" fontWeight="bold"  click="caps_clickHandler(event)"/>
             <s:Button x="85" y="91" label="A" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="a"/>
             <s:Button x="129" y="91" label="S" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="s"/>
             <s:Button x="173" y="91" label="D" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="d"/>
             <s:Button x="217" y="91" label="F" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="f"/>
             <s:Button x="261" y="91" label="G" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="g"/>
             <s:Button x="305" y="91" label="H" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="h"/>
             <s:Button x="349" y="91" label="J" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="j"/>
             <s:Button x="393" y="91" label="K" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="k"/>
             <s:Button x="437" y="91" label="L" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="l"/>
             <s:Button x="481" y="91" label=":" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY=";"/>
             <s:Button x="525" y="91" label="&quot;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY="'"/>
             <s:Button x="569" y="91" label="Enter" height="43" width="88"  fontSize="24" fontWeight="bold" click="enter_clickHandler(event)"/>
             <s:Button x="5" y="134" label="Shift" height="43" width="106"  fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
             <s:Button x="111" y="134" label="Z" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="z"/>
             <s:Button x="155" y="134" label="X" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="x"/>
             <s:Button x="199" y="134" label="C" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="c"/>
             <s:Button x="243" y="134" label="V" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="v"/>
             <s:Button x="287" y="134" label="B" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="b"/>
             <s:Button x="331" y="134" label="N" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="n"/>
             <s:Button x="375" y="134" label="M" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="m"/>
             <s:Button x="419" y="134" label="&lt;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY=","/>
             <s:Button x="463" y="134" label="&gt;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY="."/>
             <s:Button x="507" y="134" label="?" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="/"/>
             <s:Button x="551" y="134" label="Shift" height="43"  width="106" fontSize="24" fontWeight="bold"  click="shift_clickHandler(event)"/>
         </s:Group>
    </s:Application>
    thanks in  advance,
    saran r

  • Problem with Virtual Keyboard in Apple Apps?

    I am using an iPad 3 and have had Numbers and Pages apps since my iPad 1.  I am suddenly having a problem with the virtual keyboard covering/hiding the text box where you type.  For example, in Numbers: I double tap to type something in a cell and the keyboard comes up but the text box where it shows what you are typing is behind the keyboard.  I haven't seen anyone else mention this problem.  I have tried it both in landscape and letter orientation.  I have deleted the app from my iPad and reinstalled it but that doesn't change anything.  This is also happening in these apps on my iPhone 5.  This started happening after the last OS upgrade.  Anyone have any ideas?  Is anyone else experiencing this problem?

    No, I haven't seen that on iOS 6.
    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off".

  • Disable / Remove Control Key From Pop-Up Virtual Keyboard

    Hello. I am setting up a kiosk system using Microsoft Surface tablets. I wish to use the win8 virtual keyboard along with chrome in kiosk mode to run a web app. I am trying to edit the Keyboard Mapping in registry, which works with the physical keyboard
    but not with the virtual one. All I need to do is disable the control key so users can't do anything with browser shortcuts. Also, I can't just disable them in JS because the browser captures them before they even reach the js engine. 
    Thanks!

    Hi,
    On Screen  Keyboard is one application that is used to simulate the keyboard to send the Key Events to system. It is not a physical keyboard but a built-in tool,
    After a lot of research, I am afraid there isn’t a solid way of disabling the Windows key on virtual keyboard, including the control key.
    Besides, Kiosk mode is  available for Internet Explorer according to the link below, and it is available for Internet Explorer 11 after a test:
    http://support.microsoft.com/kb/154780
    Another thing is, it fails to start the Kiosk mode with Chrome after remove Internet Explorer from the control panel, I tried with a test.
    Regards
    Wade Liu
    TechNet Community Support

  • I have a virtual keyboard but it won't sync with my iPad or iphone4 is there a solution to this problem really love my iPad

    I have a virtual keyboard but it won't sync with my iPad or iphone4 is there a solution to this problem really love my iPad
    &amp; iPhone but I want to use my virtual keyboard :( help please ,,

    By virtual keyboard do you mean a Bluetooth keyboard?
    With the iPad, make sure Bluetooth is turned on, Settings > General > Bluetooth - ON
    Turn the keyboard on and see if the iPad recognizes it and pairs.

  • Virtual Keyboard help

    Hi everyone
    I have a problem with my VI. My VI reproduces an interface with a
    keyboard that the user has to use to fill the various boxes at the
    interface. At the moment, I can write all the information on a single
    string, the "Value in" and save it. This solution is ok but honestly I
    want to improve it for two reasons:
    1) my output is a single string with all the data typed. I want to
    save these data in a file but because it is a string, I need to to split
    it and this operation requires that the various voices are separated by
    a particular character like a comma (not a good solution)
    2) I have to add another string close to the "Value in" to indicate the required data to the user.
    My idea, maybe I am sking the moon, is that the user can introduce
    the data moving freely between the boxes. When all the data have been
    introduced, click the Ok button, close the VI and save these data in a
    file as combination of strings.
    Another possible solution should be to use my VI and modify it in
    order that the user digits the first raw of data, clicks Enter and can
    visualize this data in a separate string.  Digits the second raw, clicks
    Enter, visualizes this data in another separate string and so on. After
    the last raw, clicks Enter, visualizes the data and closes the VI
    pushing the OK button. In this way, all the data visulaized in the
    separated strings  can be saved easily in a file.
    Any suggestions and/or help?
    matomato
    Attachments:
    Virtual keyboard.vi ‏47 KB

    Kudos for the cool looking vi!
    I have to think about your question a little bit but I do have a couple comments. This would be a perfect XControl. I have never created an XControl but maybe this would be a good one to practice with.
    In the meantime I did have a comment on how you are detecting the keypress. There are a million ways to do it and there is nothing wrong with your technique. But your technique is just a lot of development work. See the attached modification that uses search array instead of a case structure with 50 frames.
    This part of your program would be perfect for a subvi and your keyboard cluster should be a strict typedef.
    I hope you don't mind my unsolicited comments that have nothing to do with your question
    =====================
    LabVIEW 2012
    Attachments:
    Virtual keyboard2.vi ‏21 KB

  • Handling focus for virtual keyboard

    I have a virtual keyboard in a non-modal dialog. My main application frame has multiple text component fields. I am trying to deliver key events from my virtual keyboard dialog to which ever text component last had the focus in the frame. However when the JButton is clicked in the keyboard dialog, the focus is lost in the frame and my attempt to dispatch the key event seems to go nowhere. How do I force the focus to stay/return to the last text component so it will get the key event?

    An alternative might be to create an InputMethod. But I have not found any good examples of how to code an InputMethod. For example, <inputMethodContext>.createInputMethodWindow(...).
    Maybe some one can point me to a good code example of this.

  • JTree - How do I fire a valueChange Event from a keyPressed Event?

    Hi,
    I have been stumped trying to figure out how to fire a valueChange event in my JTree from a keyPressed event.
    When a user changes tree node using the mouse a valueChange event fires. In my program the valueChange executes some code that must be done. I want to get my JTree to work, so that if a user is nagivating the tree using the keyboard, the code is only executed if they press the enter key.
    Below is a little demo program of what I am attempting to accomplish. Any suggestions would be greating appriciated.
    Thanks,
    Corey
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class SimpleTreeDemo extends JFrame  {
      public SimpleTreeDemo() {
      public static void main(String args[]) {
        JFrame j = new SimpleTreeDemo();
        DefaultMutableTreeNode category = new DefaultMutableTreeNode("Top of JTree");
        DefaultMutableTreeNode leaf1 = new DefaultMutableTreeNode("leaf1");
        DefaultMutableTreeNode leaf2 = new DefaultMutableTreeNode("leaf2");
        category.add(leaf1); category.add(leaf2);
        final JTree jtree = new JTree(category);
        boolean bflag = false;
        jtree.addTreeSelectionListener(new TreeSelectionListener() {
             public void valueChanged(TreeSelectionEvent e) {
                  System.out.println("valueChanged");
                  if (bflag)
                       // Execute Code
        jtree.addKeyListener(new KeyListener() {
            public void keyTyped(KeyEvent ke) {
              System.out.println("keyTyped");
            public void keyPressed(KeyEvent ke) {
                 System.out.println("keyPressed");
                 if (ke.getKeyCode() == KeyEvent.VK_ENTER)
                      bflag = true;
                    // Fire valueChanged here!
            public void keyReleased(KeyEvent ke) {
                 System.out.println("keyReleased");}
        Container c = j.getContentPane();
        c.add(jtree);
        j.setSize(200,200);
        j.show();

    Try this, it works for me.
    // Tree Key Listener
          tree.addKeyListener(new java.awt.event.KeyAdapter() {
             public void keyPressed(KeyEvent e) {
                tree_KeyReleased(e);
    private void tree_KeyReleased(KeyEvent e) {
          try {
          int keyCode = e.getKeyCode();
          // Get the Tree Path
          TreePath selPath = tree.getSelectionPath();
          if (keyCode == e.VK_DELETE) { //KeyCode - 127
             removeSelectedNode(); // Remove the node
          else if (keyCode == e.VK_ADD) { // Key Code - 107
             tree.expandPath(selPath); // Expand the Node
          else if (keyCode == e.VK_SUBTRACT) { // Key Code 109
             tree.collapsePath(selPath); // Collapse the Node
          else if (keyCode == e.VK_ENTER) {
              // What Ever you want to do here
          else {
          } catch (NullPointerException ex) {
          //System.out.println("Null");
    [/code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Lost use of GUI apps in 8.1.7 on RedHat 6.2

    Well, After going through the install yesterday and just everything being peachy, I find that today when I startup any of the apps I was using yesterday, such as oemapp console for example, today I get: SIGSEGV recieved at befffa6c in /lib/libc.so.6.

  • Help needed to sync apps across iMac and Macbook Air via ICloud

    I have a new Mac and I want to sync (if possible) my applications such as pic collage etc between my iMac & my Macbook Air. The main reason I want to do this is because I have set up templates in my macbook air apps and I want to use my iMac through

  • Two select lists in tabular form

    I have two Select Lists which one of them depends on the another -the second one's query depends on the first one's - ..... This operation can be done in a form or a page, but how it could be done in a tabular form??? Saad

  • I am trying to import my entire music library from my mac to my PC

    I am trying to import my entire music library from my Mac to my PC

  • Outputting JPEG using servlets

    hi Im trying to output the JPEG created by the StockGraphProducer class i found on Javaworld to a webpage using a servlet output stream. The original code used a file output stream i have included a snippet of it below. I have also included my servle