EventInjector for NumLock does not result

I have search high and low (I'm sure that's what everyone says) but I can't get the EventInjector to work. Here's my situation

I have an EditField which takes input like a currency (10.00 or 12.56) field. I have a TextFilter on the ground so that the only acceptable characters are numbers and the '.' It works very well.

Now, I am trying to affect the onFocus() NumLock field (123 in the top right corner) of the EditField. Then I thought, use the EventInjector for the KEY_ALT and the SHIFT_LEFT. Here is my code, which produces no result.

JDE is 4.7

running on devices that have the OS 4.6 and higher only

public EditField amountField(String label, String value, int max, long style){
        EditField _field = new EditField(label, value, max, style){
            protected void onFocus(int direction){
                //Dialog.alert("gained focus");
                try {

                EventInjector.KeyCodeEvent altKeyDown = new EventInjector.KeyCodeEvent(
                        EventInjector.KeyCodeEvent.KEY_DOWN,
                        ((char) Keypad.KEY_ALT),
                        0);
                altKeyDown.post();
                EventInjector.KeyCodeEvent shiftKeyDown = new EventInjector.KeyCodeEvent(
                        EventInjector.KeyCodeEvent.KEY_DOWN,
                        ((char) Keypad.KEY_SHIFT_LEFT),
                        KeypadListener.STATUS_ALT);
                shiftKeyDown.post();
                EventInjector.invokeEvent( new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEvent.KEY_UP,
                        (char)Keypad.KEY_SHIFT_LEFT,
                        KeypadListener.STATUS_ALT));
                EventInjector.invokeEvent( new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEvent.KEY_UP,
                (char)Keypad.KEY_ALT, 0));
            } catch (Exception e) {
                System.out.println("ExpenseSreen_amountField (Error) " + e.getClass() + ":  " + e.getMessage());
            }

            }

            protected void onUnfocus(){
                Dialog.alert("lost focus");
            }
        };
    return _field;
   }

Can anyone suggest what I do wrong?

As a side note, I already have the default permissions for my application to ALLOW for EVERYTHING.

new EditField("Amount: ", "", 10, EditField.FILTER_REAL_NUMERIC);

Everything you need...

Tags: BlackBerry Developers

Similar Questions

  • Firefox for Mac does not recognize a valid SSL certificate

    Firefox for Mac does not recognize the SSL certificate that is valid for this site, I got: https://www.georgeglazer.com. It gives a warning "not reliable." However, the Firefox for Windows does not give a warning. This happens even if I clear the cache and it happens in the Mavericks and OS of Yosemite. The certificate is up-to-date and with Comodo. Firefox for Mac is now the only browser producing these errors (v. 39, put updated) - Internet Explorer, Safari and Chrome are not. Our hosting provider has said it's probably a browser issue, perhaps having to do with intermediate certificates in Firefox being obsolete. I really hope you'll solve the problem, as it's annoying for us when we're going to do right by our customers and pay for the SSL certificate. I have attached a picture of the warning and the other from what you see on a PC: a pop-up that says it is a verified SSL certificate and gives details about the issuer, the period of validity, etc.

    COMODO should you sent a link to download the file 'bundle' containing the intermediate certificates. Who needs to go in the same directory as the certificate of your site. If you are using a control panel, your host can probably help with this process. And if you bought through them, shame on them for not taking care of this for you already!

  • the update of firefox 28 for mac does not, the bar just rotates, I can't get the update

    the update of firefox 28 for mac does not, the bar just rotates, I can't get the update. Thank you

    Hello

    Try to get the full version here:

    Then just install it.

  • I'm having a problem where Firefox keeps asking for my password to Amazon, even if I tell Firefox NOT to remember this password. In Firefox options, Amazon is clearly recognized as a site for which does not save passwords.

    I'm having a problem where Firefox keeps asking for my password to Amazon, even if I tell Firefox NOT to remember this password. In Firefox options, Amazon is clearly recognized as a site for which does not save passwords.

    Do not remove the navigation, search and download history on Firefox to clear the "Site preferences".

    Compensation of the "Site Preferences" clears all exceptions for cookies, images, windows pop up, installation of software and passwords.

  • NumLock does not work on Qosmio X 70 - A

    NumLock does not. How to activate the numlok?
    External keyboard numlok works

    It is placed on the keyboard NUM LOCK key that allows you to toggle umber block on the right side of your laptop.

  • Serial number for lightroom does not work

    my serial number for lightroom does not work

    Maritah has made education institution give you an indication of the place where you need to download the installation files from?

    You can download Lightroom 5.6 from the following locations:

    The updates contain the complete installation files and should accept your serial number.

  • Adobe Photoshop Elements 12 for Mac does not in Applications. Tutorial for editing in iPhoto shows by selecting the Adobe software in Applications. Am I missing a step in product registration?

    Adobe Photoshop Elements 12 for Mac does not in Applications. Tutorial for editing in iPhoto shows by selecting the Adobe software in Applications. Am I missing a step in product registration?

    I answered my own question: there is a difference between "Download"and 'install'." Hunting the 'install' (1.5 hrs in my case) and align your passwords, Adobe ID, etc., then install. 15 min. The right choice appears in the Applications. However it is to understand why photo selected for editing in iPhoto does not display in the elements.

  • For each does not properly in the XSLT file to two loops on a single node

    Hi all

    I'm transforming 2 inputs to a single target using XSLT. Both of the target entry of the same pattern and have the child element.
    In the XSLT, I gave this condition.
    "< xsl: for each select="$Variable1.payload/ns1:BookStore/ns1:Books ">
    < xsl: for-each select = "/ ns1:BookStore / ns1:Books" >
    "< xsl: if test="$Variable1.payload/ns1:BookStore/ns1:Books/ns3:BookId = ns3:Books / ns3:BookId ">

    My second for each does not work and in the target, I'm getting double elements. Help, please. Here are two xml source and xml desired target.
    1 XML source:

    < bookStore >
    < book >
    Name1 < name > < / name >
    author1 < author > < / author >
    < ID > 1 < / BookId >
    < quantity > 2 < / quantity >
    < price > < price / >
    < status > < / status >
    < book >
    < book >
    name2 < name > < / name >
    Author2 < author > < / author >
    < ID > 2 < / BookId >
    < quantity > 2 < / quantity >
    < price > < price / >
    < status > < / status >
    < book >
    < book >
    < name > NAME3 < / name >
    author of 3 < author > < / author >
    < ID > 3 < / BookId >
    < quantity > 2 < / quantity >
    < price > < price / >
    < status > < / status >
    < book >
    < / book >

    XML source 2:

    < bookStore >
    < book >
    < name > < / name >
    < author > < / author >
    < quantity > < / quantity >
    < ID > 1 < / BookId >
    < price > 100 < / price >
    < status > < / status >
    < book >
    < book >
    < name > < / name >
    < author > < / author >
    < quantity > < / quantity >
    < ID > 2 < / BookId >
    < price > 200 < / price >
    < status > NA < / status >
    < book >
    < book >
    < name > < / name >
    < author > < / author >
    < quantity > < / quantity >
    < ID > 3 < / BookId >
    < price > 300 < / price >
    < status > < / status >
    < book >
    < / book >

    Desired target XML:

    < bookStore >
    < book >
    Name1 < name > < / name >
    author1 < author > < / author >
    < ID > 1 < / BookId >
    < quantity > 2 < / quantity >
    < price > 100 < / price >
    < status > < / status >
    < book >
    < book >
    name2 < name > < / name >
    Author2 < author > < / author >
    < ID > 2 < / BookId >
    < quantity > 2 < / quantity >
    < price > 200 < / price >
    < status > NA < / status >
    < book >
    < book >
    < name > NAME3 < / name >
    author of 3 < author > < / author >
    < ID > 3 < / BookId >
    < quantity > 2 < / quantity >
    < price > 300 < / price >
    < status > < / status >
    < book >
    < / book >

    Thank you

    Hello

    It will not work like that... To do something like the following... Only one for each...

    
      
      
        ns1:Name
        ns1:Author
        ns1:BookId
        $Variable1.payload/ns1:BookStore/ns1:Books[ns1:BookId = $bookId]/Quantity
        $Variable1.payload/ns1:BookStore/ns1:Books[ns1:BookId = $bookId]/Price
        $Variable1.payload/ns1:BookStore/ns1:Books[ns1:BookId = $bookId]/Status
      
    
    

    I don't have to check the syntax, but you get the idea...

    I hope this helps...

    See you soon,.
    Vlad

  • File server for Windows does not work after security update

    I just upgraded the security update that was released last week and all of a sudden the computers windows cannot access the server. I'm under 10.11.6 and everything was great until we started windows computers today. They can ping and access the internet, but they cannot access SMB on the server.

    Macs have no connection problems in the SMB and AFP.

    Any ideas, what has changed? Users of server are all still there and it seems like it should work. I can access the web page of servers too.

    Make sure you are including the domain in the user name when signing in. for example USER: groupe_travail

    Also, check that your windows machine has the correct set of LM compatibility level. For El Cap servers must be set to 3.

    Follow the instructions below to change the Windows security settings to allow Windows SMB connections.

    1. Click on the Start button and in the bottom search bar, type regedit . Select search results regedit and the registry opens.
    2. Using the folders on the left side of the screen, navigate through the tree to the following location: \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
    3. In the right window, find the following DWORD value: LmCompatibilityLevel . If it exists, double-click it and set the value to 3 (in decimal).  If it does not exist, right-click in an empty space in the right part of the window and create a new DWORD value called LmCompatibilityLevel and set its value to 3 (in decimal).
    4. Restart the computer.
    5. Re-try to connect to the server via the workstation.

    NOTE: The versions Home of windows may not the ability to set the LM, and unfortunately I have not found a way around that.

  • Click for links does not work in firefox

    Hello

    Having a strange problem with firefox - simple click will not open links - always needs a double click (even one with a long delay between the first and second clicks) to navigate. This problem started a month ago. I have used firefox for years without encountering this problem.

    Apart from firefox (including Windows, IE...) this problem will not occur. Interestingly, the problem also does not occur in firefox toolbars, menus, etc. It seems that for the links...

    I'd really rather not reset firefox because it will be a good pain to recustomize settings lost etc.

    Any help appreciated

    For others who may be in the same boat: culprit has been found - Webroot filtering Extension (v1.0.2.42). I use Webroot as my antivirus and installed their firefox search engine 'screens' results link extension

    I think it's maybe a recent update to this extension, which is the issue that I think I've been using this extension for more time that I had the problem... In any case, problem resolved once off extension. It's a shame, as I've found most useful.

  • Satellte C870 (PSC8EE) - display driver for Win8 does not install anything

    Hello

    I have a Satellite C870 bought in October last year.
    I have level of Windows 7 to Windows 8 a first time just before Christmas and has worked well.
    (A few small issues suchas as necessary before installing the display driver, but all Bios Update worked fine)

    A few days ago I had a system crash and the HARD drive died.
    Send the Sateite to replace HARD drive and came with Windows 7

    Has started the last installation of evening back to 8 64 window.
    But the display of the Toshiba site driver does not install anything? Catalyst still not...
    Just get the request to confirm if I want to install the product and then nothing...

    Tried the two drivers offered from the 19/02 and 26/02, but with the same result...
    Tried to install the driver directly from AMD announcement was a message my card was not supported
    I tried Windows 7 driver from Toshiba site for my machine and got the same message...

    Graphics card is an AMD 75610 M

    And of course I have admin access and also tried to run the installation in administrator mode files.
    And other drivers install normally (Lan Drivers, drivers Wifi, Tempro, mode eco etc.)

    Thanks for your help

    Hello

    The driver that you downloaded is a zip package.
    Unzip everything first.
    Then you will see a single .exe file in the unzipped folder.
    This exe file is also a package.
    Therefore, unzip the .exe file too.
    Right click on the exe file and select unpack here
    Now, you will have access to the files together. Now choose Setup.exe or Install.exe

  • HP Deskjet J110: 8.1 for Windows does not recognize Deskjet J110, does not print. Drive of reloads.

    DeskJet J110 does not test page print.  Removed the printer and reinstall, USb not recognized. Charges such as LPT1. Tried unplugging, reboot and reconnect. Same result.

    Hello Floadnar,

    Have you tried with another Usb cable? DC said that "usb not recognized it. You should check also Device Manager for universal serial bus drivers. Finally, you can try to connect both usb cable to check the work of regular printer usb socket or not. you don't need to install the driver. Simply connect the usb cable between the printer and PC. If both USB works with off problem that should not see the unrecognized Usb device message.

  • parallel for loops does not

    Hello.

    I'm learning the multi - thread programming. To start, I use "parallel for loops" and I was surprised that it does not work. One - thread loop work a few times faster (depending on settings) that multi - thread. I don't know why, and it is my request to correct my Vi to work properly.

    Lenovo, G580, Windows 7, 64-bit computer

    Intel Core i7 3632QM
    Ivy Bridge
    Specification Intel (r) Core i7-3632QM CPU @ 2.20 GHz
    Package (platform ID) Socket 988 B rPGA (0x4)
    Number of hearts 4
    Number of threads 8

    LabView 2011.

    Altenbach says:

    Gibbon wrote:

    What was 'strange' behavior?  In "linia dluga" when inside the loop is on '1' of the "spreed up' between one and multi-fil is about 3 times, when I put it in '20' this grow to 6.2. It was strange form me, becourse I expect a similar value.

    A parallel FOR loop has an overhead for parallelization (split the problem, then go back the results, etc.). If the code is very fast, the overhead is proportionally larger. If the Subvi takes a long time to complete, the overhead of parallelization is insignificant. It is often not worthwhile to parallelize the loops with a very simple and fast code.

    Gibbon wrote:

    Altenbach - I have another question if you can help me - how did you "seconds relative high resolution." VI "? -I want to say how did you know that there is this 'vi '. And thanks a lot for your modyfications.

    You can find it in vi.lib\utilities. It is well known.

    Maybe not well known enough!  the 'Hidden gems' package adds to your palattes.  It has also been considered by a nugget of the community

  • Xbox 360 controller/joystick for PC does not work properly in Battlefield bad company 2

    I recently black battlefield 2 and bad company xbox 360 wired to use with the game controller. Once both parties had been settled, I went to the settings in the games options and tried to attribute the actions with the buttons of the gamepad /, but here the rub. Not all the buttons of the gamepad a response, as the right analog stick and the arrow keys. Some of the buttons that do not give an answer have different names /-are mixed with other keys, as the right trigger. When I try to assign the right trigger for fireing, she appears as axe1 x and does not work in the game.

    Some of the buttons that work are the x button and the stick analog left and right and left bumber.

    I did not so much to try to solve the problem, as I have really no idea what to do. I thought to uninstall and reinstall the game, but that would help? Also perhaps reinstall the controller, or by downloading a driver for him on internett. It was installed using the disk resulting.

    The problem, in the game or in the controller? Perhaps driver? Where would I go to file a complaint, get my money back?

    Any help would be much appreciated!

    -Mathiasshow

    Hello

    ·        This problem happens only when playing Battlefield Bad Company 2 and other games as well?

    I suggest you run another game on your XBOX360 and check to see if the same problem happens.

    If the problem occurs with all the games then I suggest you to contact the hardware manufacturer.

    If the problem does not occur with a different game then I suggest you uninstall and reinstall the game and see if the problem is resolved.

    Please visit the link provided below for more information on how to uninstall a program in Windows 7:

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    You can also post your question on the link below:

    http://www.xbox360forum.com/Xbox-Forum/Forum.php

    Thank you, and in what concerns:
    Naman R - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I remove a file for LabVIEW does not keep a copy in memory?

    After I use the command "Delete" files Advanced features, and then create a new file with the same name, LabVIEW must have the original in memory because the file continues to grow and is not what I want to do.  I tried the deallocation "request" for the control of the Application--> control of memory, but it does not work either.

    Your help is appreciated and thank you.

    Vince

    I never saw a 4 d picture in before real employment.

    You're not erase your data.  In the second excerpt that you posted, you continually add new 3D you berries table 4 d.  You manage this 4 d with the feedback node table.

    What you need to do, when you want to delete this table 4 d, for wire table 4 d vacuum in this feedback node rather than the result of the function Array construct.  You can use a function of selection or a structure deal to choose between the results on the cable and an empty table 4 d constant according to some Boolean condition allows you to determine the table needs to be emptied.

Maybe you are looking for

  • How can I disable nsurlsessiond eat all my bandwidth!

    How can I disable nsurlsessiond eat all my bandwidth! I have to pay for cellular internet connection (without dal or satellite here): it is KILLING me!

  • Get points of exclamation instead of text in Safari

    Instead of text showing, all see is exclamation as the screenshot below points. It just started this week and I have to restart the computer and it still appears like this. Very well, things work in Chrome. Any ideas? Data sheet: OS X EL CAPITAN 10.1

  • Drive not work in IE and saying failed to connect with fingerprint sensor

    Hi all I purchased a Qosmio x 500 10 t a couple of months back. For the first two weeks, I had no probs using the fingerprint reader to log on windows and connect to Web sites in Internet exploer. All of a sudden it would not work on any website that

  • Bought Mountain Lion and got two letters on the license;

    but where to find the OS X? Mountain lion is not in the Appstore (bought sw) and said none of the two letters, where the return (OS X) to find and load. Any idea? ~ Karl

  • Can I add more ram?

    Hello.i have a laptop computer hp laptop g62 (a80sv I think) and I have 2 GB of ram (ddr3 elpida in 1 ram) I have room to add more ram (I want to add more than 2 GB), but I don't know if my laptop can recognize it.also I want to know how much it cost