Canvas: Left key is -7, right key is -6 and middle key is -5 in all phones?

Hi,
Before MIDP 2.0, Canvas can't show full screen. And Nokia UI provides FullCanvas for us to do so. And this class has 2 static final variable: KEY_SOFTKEY1, KEY_SOFT_KEY2 and KEY_SOFTKEY3.
But MIDP 2.0's Canvas has no any variables to specify the soft keys.
But according to Series 60 Developer Platform 2.0: Specification v1.0 (http://www.forum.nokia.com/Forum/Common_Templates/FileDownloadThankYou?fileID=4296&fileURL=aHR0cDovL25kczEuZm9ydW0ubm9raWEuY29tL25uZHMvRm9ydW1Eb3dubG9hZFNlcnZsZXQ/aWQ9NDI5NiZuYW1lPVNlcmllcyU1RjYwJTVGRGV2ZWxvcGVyJTVGUGxhdGZvcm0lNUYyJTVGMCU1RlNwZWNpZmljYXRpb24lNUZ2MSU1RjAlNUZlbiUyRXBkZg==) from www.forum.nokia.com.
Page 77:
Left soft key, -6, "Left soft key" or left soft-key symbol
Right soft key, -7, "Right soft key" or right soft-key symbol
Middle soft key, -5, "Select", "Middle soft key" or similar symbol
I did try in Nokia emulators / real phones. -6, -7 and -5 can work for representing the 3 soft keys.
And it's same in WTK 2.1 / 2.2 emulators.
Can I conclude like that:
-7, -6 and -5 are fixed to stand for 3 soft keys in all MIDP compatible devices ?
Please advice me.
Thanks.
http://www.geocities.com/akokchai/

No you can't.
Soft keys are not part of the standard and there's no guarantee all MIDP devices will even have softkeys (let alone three of them). AFAIK all the Nokia handsets use the same codes for the softkeys, but for other manufacturers the codes can/will be different (for instance, on many Motorola handsets I've tried the codes for left/right softkeys were -20 and -21), and on some devices they don't even generate key events.
Bottom line: if you want to use the softkeys on your full screen canvas you'll need to do separate builds for each handset or class of handsets or manufacturer, etc.
shmoove

Similar Messages

  • Left click behaves as right click and the alphabet keys are not working

    Left click behaves as right click and the alphabet keys are not working

    It could be due to a Windows Update.
    I am also facing this issue. All my friends using Windows on Mac are also have got these ssues.
    Don't worry, you are not the only one facing it.
    T_T

  • Problem wih left key in n78

    hi my friends
    sorry,i cant speak English well
    i have problem with  my n78
    i buying n78 yesterday
    the left key not work
    revert to factory default settings and upgrade firmware but  not responseplease help me

    Just to clarify, are you referring to Alt Space bar left click and drag for zoom?  If yes, then that needs 'Use GPU' enabled in Preferences > Performance.  So can you check that? It actually works with either Ctrl or Alt together with the space bar. Left mouse click and drag left and right to zoom in and out.
    If GPU is checked, can you try some different settings?
    Photoshop CC and CC 2014 GPU FAQ
    You should also make sure the video card driver is fully up to date, and from the card maker's web site.

  • Ultra nav mouse left key moves incorrectl​y

    Ultra nav mouse left key moves incorrectly or it may be broken. It is still in place however the left key rocks to the left and sticks, causes erratic reactions. Can this be fixed? I have lifted the right edge of the key up, cleaned, and adjusted the wire placement to no avail.
    Thank you for any ideas.

    What I suspect is happening here is an error with relative positioning, ie. when I move the right thumbstick left it's setting the cursor to an extremely low value, say -100,000 and therefore when I move it right because the minimum value is supposed to be -32768 it has to surpass that value before actually visibly moving right.
    Does anybody know how I could track the actual x,y co-ordinates of the cursor to establish if this is happening?
    Edit: enabled log statements in xboxdrv config. My theory has proved incorrect. I'm stumped.
    Last edited by darArch (2013-08-05 18:51:20)

  • TS1381 My left arrow does not work on my macbook pro(model A1226).  I have reset nvram, performed a safe boot, pulled the cache to desktop, replaced .globalpreference.plist, test all other keys with keyboard view (all others work)  - HELP!!

    My left arrow does not work on my macbook pro(model A1226).
    I have reset nvram, performed a safe boot, pulled the cache to desktop, replaced .globalpreference.plist, & tested all other keys with "keyboard viewer" (all other keys work except for the arrow). 
    In addition, I have gone thru all the recommended checks with universal access and have booted from snow leopard dvd and the left arrow still does not work. 
    I have tried using the left arrow key in all of applications I use such as: excel, ms word, address book, calendar, iphoto, terminal, & highlighting an icon and using the arrows to move to another selected icon.
    Here is the kicker!  In addition, I purchased a logitech solar bluetooth keyboard and the arrows work fine with my ipad but do not work when paired with the macbook pro. All other keys work fine on the macbook pro using the bluetooth keyboard.
    I believe this says that the problem is not in my macbook pro keyboard. So where can it be?
    Can anyone think of any other rabbit holes I can search?
    thanks and regards
    vats3

    I would also like to add that I've reverted the two cd drive and hard drive mods I did and the laptop is back to factory hardware and there is 0 corrosion or mold visible.

  • Arrow Left key and arrow Up key and fn key not working properly !? Lenovo G580 PLEASE HELP x_x !

    Hi guys i have a Lenovo G580 im not sure which version but i can tell you its intel i.3  and its got usb3.0 on it and 500gb hdd. 2.20Ghz  4.00RAM.   
    been days that i try to solve my Fn Key problem and also the arrow left and arrow up keys < i was using Win8 and downgraded to Win7 last week and that problem has occured since ,it misbehaves and it only works for a short amount of time it randomly works those keys FN.arrow up/left keys randomly they work , i upgraded again to Win8.1 now for the first few boots evrything worked well fn key and arrow keys np.< and now again it stops working.. and btw. whenever i press hard against it it would work pressing down the fn and arrow left/up keys when i press really hard it works but then again it doesnt Soo end of the story its not functioning properly and i have Energy management and Display driver HD 3000 installed and i still got this problem .. is there any fix to this anyone please !? 

    Hey mate the keys are faulty nothing can fix it except for buying a new Replacement! , i fixed the problem simply by Replacing the KEYBOARD !  i went downtown and looked for a g580 keyboard and they didnt exactly have the same version g580 they had c or b580 i dont remmber what letter it was sorry ! but the thing is the whole keyboard layout of many Lenovo Laptops are the same just look one thats the same, cause mine wasnt for G580 but the thing is its still working perfectly ! only problem is the Screws didnt fit i had to cut out the sides of the screw hole thingies to make the keyboard fit in well in my G580 , Simply put all you need is a new keyboard replacement buy one they cost between 20-40$ worth it cause you wont have any faulty keys anymore evrything will work fine. no need to reinstall anything just replace it with new Keyboard. and Plus its easy to replace it by yourself. i replaced mine by myself easily. Problem fixed.

  • X1 Carbon TrackPoint left-key smudge, Help clean

    I got a slightly used X1 Carbon 34XX version (2013 model) recenetly.
    I have been using t430 for quite a long time now but now when I'm on X1 carbon I notice that the Left-key with the trackpoint is not registering properly..when I click on the area close to the scroll key, which is naturally where my finger presses, The key goes down to its seat but it misses registry and often creates problems when I drag items. I have to push it down with an extra force to make sure the key wont miss.
    The same key works very responsive when I click on the other end (left end) of the key. But near the scroll key it feels as if something underneath the key has shifted or something...I tried tapping it, hitting it, pulling it upwards and pressing it hard but none of that helped.
    I was wondering if anyone could provide me help on how to remove this key and clean whats underneath and fix it. I know how to remove the keyboard but not sure how to get to this key.
    Thank you

    Hey there MichelDK,
    The information you've provided I'm sure will be extremely useful to those in community who are experiencing errors with their Ericsson WWAN cards in Windows 8. If you are able by chance to recall the name of the device this would be extremely helpful, as this information could easily be turned into a knowledgebase article for the community to reference.
    Thank you for being a part of the Lenovo Community MichelDK!
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution".! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.

  • HI. I would like to arrange over 30 pictures into one grid-like ARRANGEMENT. (meaning above, below, left, right, of each other and so forth to form a rectangle)

    HI. I would like to arrange over 30 pictures into one grid-like ARRANGEMENT. (meaning above, below, left, right, of each other and so forth to form a rectangle)
    Please help...thx

    You messaged me that the contact sheet look is what want but w/o spaces.
    One method is to actually start with the PSE contact sheet tool.  I assume your version has it (mine is PSE 2). Maybe your version has an option to remove spaces; mine doesn't. In this example I created a sheet of  4 rows and 3 columns, with the option to not flatten the layers. Each picture appears on a separate layer.
    On each row I moved the left and right pics inward to remove the spaces between the pics:
    Activate the Move tool. Click on the left pic and use the arrow keys to move it inward. Same with the right pic.
    Now to remove the spaces between the rows. To make this easier. lock together the pics on each row. Here I locked the pics on the top row, then used the arrow keys to move the row as a unit downward.  An alternative method would be to merge the 3 pics on each row and move that merged layer.  Do the same for the remaining rows.
    This method works of course if the pictures are all the same size and all aligned vertical or horizontal.
    If you don't want to use the contact sheet tool (e.g., if the pics are different sizes or alignment) you can do this:
    Create a blank canvas.
    Open a picture, select it (Select > All) and copy to the clipboard (Edit > Copy).
    Activate the blank canvas and Edit > Paste. The picture will be placed on its own layer.
    Do the same with the remaining pics and use the Move tool with mouse and/or arrow keys to position them where you want.
    The advantage of the first method is that the rows and columns are precisely aligned.  Using the mouse to align the pictures could be a little tricky.

  • "Excel found unreadable content in" The Problem is text in a clob exported to excel uses - Left single quotation mark -Right double quotation mark.

    Here are the ASCII char being used.
    145 221 91 10010001 ‘ &#145; &lsquo; Left single quotation mark
    146 222 92 10010010 ’ &#146; &rsquo; Right single quotation mark
    147 223 93 10010011 “ &#147; &ldquo; Left double quotation mark
    148 224 94 10010100 ” &#148; &rdquo; Right double quotation mark
    149 225 95 10010101 • &#149; &bull; Bullet
    150 226 96 10010110 – &#150; &ndash; En dash --
    The default CHAR NOW is a black diamond with ? in middle in stead of 'Right double quoation mark' and others.
    The Text used is copied from documents user's get
    so someone is putting in I think what is called ALT ascii. This data has been used for years
    some updates where put in the system, I don't know details.
    The following error started you click YES and the XLS has alot of data missing not just the CLOB.
    Excel found unreadable content in ‘file-name’.
    Do you want to recover the contents of this workbook?
    If you trust the source of this workbook click yes.
    I can copy the text then load it into the a column in a xls. 
    I am exporting the spreadsheet from TOAD it wasn't updated so
    it has to be with the EXCEL. I tried changing the ENCODING in EXCEL but that
    didn't work.

    I'm not familiar with TOAD, could you please let us know how did you export data from TOAD to Excel?
    Based on your description, it should be an encoding problem, have you tried to change the encoding as 'UTF-8' ?
    Wind Zhang
    TechNet Community Support

  • Fire a left click when the right button is pressed

    I am working on a small program with a text area and mouse functionality. I have all my listeners in place but I need one additional feature and I am unsure how to go about implementing it. I want to be able to fire a left click when the right button is pressed.
    The reason is because right clicking does not move the caret around the text area. I need to be able to move the caret with a right click so I can then invoke another method to do some other functionality that is associated with the right click. Any method is acceptable as long as a right click will result in the caret being able to move to a location much like a left click can.
    all help is appreciated. Thanks.

    I'm not sure if this is "better", and my guess is that it isn't, but how about using a Robot object here to create a left mouse press and release? For instance,
    import java.awt.AWTException;
    import java.awt.Robot;
    import java.awt.event.InputEvent;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JComponent;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    public class RightClickAsLeft
      private JPanel mainPanel = new JPanel();
      private JTextArea area = new JTextArea(20, 50);
      private Robot robot;
      public RightClickAsLeft()
        try
          robot = new Robot();
        catch (AWTException e)
          // TODO Auto-generated catch block
          e.printStackTrace();
        mainPanel.add(new JScrollPane(area));
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 18; i++)
          for (int j = 0; j < 80; j++)
            sb.append((char)(40 + j));
          sb.append("\n");
        area.setText(sb.toString());
        area.addMouseListener(new MyMouseListener());
      public JComponent getComponent()
        return mainPanel;
      private class MyMouseListener extends MouseAdapter
        @Override
        public void mouseClicked(MouseEvent e)
          int button = e.getButton();
          if (button == MouseEvent.BUTTON3)
            if (robot != null)
              robot.mousePress(InputEvent.BUTTON1_MASK);
              robot.mouseRelease(InputEvent.BUTTON1_MASK);
      private static void createAndShowUI()
        JFrame frame = new JFrame("RightClickAsLeft");
        frame.getContentPane().add(new RightClickAsLeft().getComponent());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main(String[] args)
        java.awt.EventQueue.invokeLater(new Runnable()
          public void run()
            createAndShowUI();
    }Edited by: Encephalopathic on Apr 10, 2009 9:59 AM

  • When making a new playlist, the screen layout has changed, the playlist header is now on the left instead of the right, this does not allow me to drag the songs onto the playlist, how do I reset?

    When Making a new play list, the play list was on the right of the screen and this allowed you to drag your music onto the playlist, my setup has changed to the left of the screen which does not allow you to drag your music across, how do I reset?

    In the top corner of iTunes is a small icon with a down arrow, click on that and choose 'show menu bar'. 
    Then on the view menu which now appears choose 'show sidebar'

  • How Do i add an inverted left channel to the right channel?

    How Do i add an inverted left channel to the right channel?

    http://www.thehangtime.com/gb/gbfaq2.html#audioeditors

  • A long left click shows the right click menu

    When I hold down the left mouse button, the right click menu appears.
    I want to turn off this function, but can't remember which extension controls it or whether the function is built in to Firefox.

    Hooray!! Found it! Thank you Google.
    I found an old - very old - thread on Mozillazine.org:
    http://forums.mozillazine.org/viewtopic.php?f=38&t=340572
    And it IS a normal Firefox feature, but is normally OFF.
    I think I must have recently turned it on after reading a "Firefox Tips and Tricks" article somewhere.
    Anyway, the preference is called "ui.click_hold_context_menus".
    And I just remembered that I added it in my "user.js" preferences file, amongst a load of others:
    * Disable the Delay When Installing New Extensions
    user_pref("security.dialog_enable_delay", 0);
    * To turn off the URL greying
    user_pref("browser.urlbar.formatting.enabled", false);
    * To unhide the "http" portion of a URL
    user_pref("browser.urlbar.trimURLs", false);
    * Enable spell checker in multi-line text boxes & single-line text boxes
    user_pref("layout.spellcheckDefault", 2);
    * Double underline style
    user_pref("ui.SpellCheckerUnderlineStyle", 4);
    * Cycle through open tabs with Ctrl+Tab
    user_pref("browser.ctrlTab.previews", false);
    * Disable Animations for Full Screen
    user_pref("browser.fullscreen.animateUp", 0);
    * Click and hold on a hyperlink to show the context menu
    user_pref("ui.click_hold_context_menus", true);
    * Instant Apply Preferences Without Closing Options Window
    user_pref("browser.preferences.instantApply", true);
    * Middle-click in any textfield, addressbar or searchbox to paste clipboard
    user_pref("middlemouse.paste", true);
    So there's a lesson to be learned here: don't add too many tweaks to your Firefox preferences at the same time or you may forget what you did!
    Thanks, all. I'll now mark this as "Solved"!

  • I change my phone number and i want to verify my key chain on my new phone

    I change my phone number and i want to verify my key chain on my new phone.. but it send to my old number.. I already change the number at system preference but it still send to my old number.. can you help me?

    All the publicly available information is here:
    http://www.apple.com/ios/ios7
    There are links on that page to features.

  • In mini bridge is there a key stroke to "select all" images?

    Hello,
    In mini bridge is there a key stroke to “select all” images? I’d prefer a key stroke instead of having to use the View drop down menu to select all, and "Ctl A" doesn't do anything.
    Thank you.

    Select a message in the mailbox or highlight a mailbox, then keys command-a to select all.

Maybe you are looking for

  • I'm getting error message ":Unbalanced InstanceBegin tag"

    When I try to update my files from template it wont upadate and gives me error at line 1 ":Unbalanced InstanceBegin tag" It just started doing this. I'm using dreamweaver 8. I tried unistalling and reinstalling and page still didn't work. This is a s

  • What can I do so no one can embed pages of my iWeb site in an iframe?

    How can I make it so no one can put my iWeb site in an iframe?  if other words, how do I make my pages automatically break out of iframes?

  • Problem in RecordStore

    As we know that we have a method deleteRecord(int recordId) in RecordStore Class. it deletes the record ID associated with the record. So, when we delete a record, it deletes the record along with the recordID but does not rearrange the remaining rec

  • TS1702 Where do I find my purchase list? I need to know about my charges?

    Where do I go to see all app charges and billing?

  • Thank You, Steve

    Dear Steve -- Thank you for offering to give us early IPhone adopters a $100 Apple Store credit. That is very kind of you because you have nothing to apologize for. People buy electronic and other high-end purchases (like cars, furniture, cell phones