How to use the windows key (super or hiper) as a keystroke modifier?

I can associate the windows key (KeyEvent.VK_WINDOWS) as a regular key on a KeyStroke without problem.
It can be alone or with a modifier, like CTRL+WIN
KeyStroke.getKeyStroke( KeyEvent.VK_WINDOWS, InputEvent.CTRL_DOWN_MASK )My doubt is: Is there a way to use it as a modifier?
In other words, is it possible to create the KeyStroke using the windows key with any other? e.g. "WIN+K"
Thanks,
Henrique Abreu

Thanks a lot for the quick answer.
Your KeyboardCommands class doesn't do it (but gives the idea), because it can only trigger an action on one key (like KeyStroke, that handles key+modifier).
I could make big changes on it to add the functionality of triggering an event on a combination of keys, which would solve my problem.
Although this solution is not so good because we totally give up of actions in Swing, which I mean stuff like actionMaps, InputMaps WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, etc.
If KeyStroke class really doesn't provide this (unbelievable!), I wonder if there is a way to extend and enhance it? (or AWTKeyStroke)
Can anyone say if its possible, before I go deep and find out that it isn't?
Another secondary question (that I think doesn't worth a new topic), what's the META_DOWN_MASK or META_MASK? or where is this key?
Henrique Abreu

Similar Messages

  • Hi fellow apple guys, i have this problem. Hope you can help me. I don't know how to use the function keys (F1 to F12) on my macbook air. Pls help

    Hi fellow apple guys, i have this problem. Hope you can help me. I don't know how to use the function keys (F1 to F12) on my macbook air. Pls help

    Out of the box, to use the function keys as function keys, hold down the fn key when you press the key. Otherwise, you get the picture function on the key. You can reverse this behavior in the Keyboard system prefs.

  • How to use the Function keys as function keys instead of action keys?

    When I press F1 or any of the other F keys it does what the symbol says on the key (volume/skip track etc).
    How do I actually use the F keys and not the symbols?

    Hi again John,
    ...is there a way to switch that around so I use the "fn" key for sound etc?
    Do the following:
    1. Fire up System Preferences
    2. Select Keyboard & Mouse
    3. Select the Keyboard tab.
    4. Tick the "Use all F1, F2, etc. keys as standard function keys" box.
    That's it. You have now reversed the default use of the function keys. If you need to increase/decrease sound, brightness etc then press 'fn' plus the appropriate function key.
    Kryten

  • How to use the windows API GetCaretPos with FireFox? It works with IE

    I want to get caret position from a windows desktop application using the Windows API GetCaretPos. It works in any windows Application and in IE. It worked also in FireFox for some minutes in version 3.6.8 but than it stopped working. Can anyone tell me how to make it work?
    == This happened ==
    Every time Firefox opened

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Did this fix your problems? Please report back to us!

  • SSL: How to use the same key pair for ABAP & JAVA?

    Hello,
    I want to setup an XI (3.0 on Netweaver04)installation in the way, that ABAP AS and JAVA AS use the same key pair for SSL. My problem is to define the same private key on ABAP and JAVA. With the JAVA Administrator I am able to define or import a private key. But I could not find a possibility in ABAP to manage private keys in order to use the same on as in JAVA. What is the procedure for this?
    Thanks and Regards,
    Frank Tottleben

    Hello,
    I want to setup an XI (3.0 on Netweaver04)installation in the way, that ABAP AS and JAVA AS use the same key pair for SSL. My problem is to define the same private key on ABAP and JAVA. With the JAVA Administrator I am able to define or import a private key. But I could not find a possibility in ABAP to manage private keys in order to use the same on as in JAVA. What is the procedure for this?
    Thanks and Regards,
    Frank Tottleben

  • How to use the distinct key in formula field in SAP Crystal Reports

    I want to use the distinct key in formula field in SAP Crystal reports.
    When i'm using it shows an error.
    Please suggest me....

    Hi,
    Use DistinctCount keyword directly for your calculation instead of count(distinct(....
    Alternatively, if you want to avoid duplicate records, under "File" > "Report Options" make the 'Select Distinct Records' as True.
    Thanks,
    Raghavendra

  • How  to use the RSA  key files generated by Crypto++ in java

    Hi - Good day to all :)
    I have two RSA key files(private key file and public key file) generated by Crypto++ 5.2.1:
    code here:
    void GenerateRSAKey(unsigned int keyLength, const char *privFilename, const char *pubFilename, const char *seed)
         RandomPool randPool;
         randPool.Put((byte *)seed, strlen(seed));
         RSAES_OAEP_SHA_Decryptor priv(randPool, keyLength);
         HexEncoder privFile(new FileSink(privFilename));
         priv.DEREncode(privFile);
         privFile.MessageEnd();
         RSAES_OAEP_SHA_Encryptor pub(priv);
         HexEncoder pubFile(new FileSink(pubFilename));
         pub.DEREncode(pubFile);
         pubFile.MessageEnd();
    }generated private key is:
    30820273020100300D06092A864886F70D01010105000482025D3082025902010002818100E19891D888651221AF315B369873F01910D097F554723EE8748FA230F2B954EBEFC57CB402DD03333BA9514AB5256EF92BE714C710D166A1D86CB7A11EFB4499506826AB873F5036B92F07BBB3ABB8F562646DE6E11031C46542633605FDE4A31E0E0A8651B4BC7743C18266D664E59E713D7595ED3D3B6C2F94C6072E276171020111028180425A0CC7372CC918F74AC07978221970C8B5D25736F46CDAF51B2FB40B27735473B28E16D3AA6A5A5CD7724326382FB2B28F4258AA97F1026CD4AE7AAEC25F77D54DF69BB3979E2893EBB071DA5752871BC8C60F9B5546C466F3103884D6B67FADCD51B17899991989507CB16F45DD76EC0DEDA1BD979ED1A101179F9687E9E5024100FFCAAEF814F12DCBDF20D4CFDD5007738DAAE45AE7EC2FD8E23A9EFCA85FADCAF61B03BFEA6FE6023E78700F804C4C275375A85BC367FE39D5FB2E0F0A4555F7024100E1C797A20FB108ADAFECDB025665FF500FDBB4F0829BAAE95833C046005DCA593F6C2437CD3A9AB7CC04372F422B0EE2C7FED87AA53821366962AE0CBDAD89D702402D23C48621D035421851167F08F00150A08791B5B074F96282469486F0895AE794D7973FFC31DD4BB0ABD78A43D13A9D8732E1799AF43BEC16B3DAF3986696B30240351FE7716D1A98A156921569F6361DF4B86FEE56B551CDDC8D395A6AD2E8E4513C1971EF031CD91C3000FDED00829A173E1DD895540D34FDBE71925D59CE7AC9024014A4347A1E7408FBB0A9AE5064FA58CAF2BCA5C00B8082A46EECABFA5CBF61364FEE81E2C049F399A2F601C802DD54A6D9340FABE62D6D1F913026C8B3764AFEI use this key in java
    BufferedInputStream input=new BufferedInputStream(new FileInputStream("privateKey"));
              int size= input.available();
              byte[]buffer=new byte[size];
              input.read(buffer);
    X509EncodedKeySpec lX509EncodedKeySpec = new X509EncodedKeySpec(buffer);
              PrivateKey lPrivateKey = KeyFactory.getInstance("RSA").generatePrivate(lX509EncodedKeySpec);there is a exception,at generatePrivate() method
    at sun.security.rsa.RSAKeyFactory.generatePrivate(RSAKeyFactory.java:294)
         at sun.security.rsa.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:171)
         at java.security.KeyFactory.generatePrivate(KeyFactory.java:322)
         at test.Main.main(Main.java:27)any body can help me?

    X509 is for public keys, not private keys. You need PKCS8 using PKCS8EncodedKeySpec on the hex decoded private key string.
    Your method for reading the private key from the file is flawed. The method available() does not guarantee to give you the file length. This is easy to prove since files can be longer than Integer.MAX_VALUE and available() returns an 'int'. To get the file length use File.length() which returns a 'long'. Also, reading from an InputStream using
    input.read(buffer); does not guarantee to read all the bytes. For that you need to use something like DataInputStream.readFully().

  • How to use the bootp_enabled key with dscl command create

    During Netboot service configuration I wanted to do it right and followed the suggestions in "System Imaging and Software Update Administration" (page 22):
    +"To prevent the NetBoot BootP server from responding to+
    +requests for IP addresses, use the dscl command-line tool to open the local folder on the NetBoot server and add a key named bootp_enabled with no value to the /config/dhcp/ folder."+
    so I first tried to read the local directory:
    xadmin$ *sudo dscl . -read /config/dhcp/*
    AppleMetaNodeLocation: /Local/Default
    RecordName: dhcp
    RecordType: dsRecTypeNative:config
    and then to create the key:
    xadmin$ *sudo dscl . -create /config/dhcp/ bootp_enabled*
    * Uncaught Exception: <NSInvalidArgumentException> ([DSoDataNode initWithDir:value:] value is not a valid NSString nor NSData)
    but did not succeed. Somthing must be wrong with the syntax. Tried several (Config, dhcp noslash, bootp_enabled:) but nothing helped.
    You dscl experts - please enlighten me!
    Btw. Apple why not include to correkt syntax in a manual?

    worked for me, too
    Thanks a lot,
    Willi

  • How to use the command key with shortcuts/CS6?

    Since ID2 I  am using the combination Command+Escape to define a shortcut.
    Buy this time Escape could not be tagged.
    I was trying to remember if those years ago I modified escape key in some place (system preferences/keyboard) but neither could find a path to reconstruct this.
    Also check the escape key in other shorcuts to avoid problem but no way.
    Searched the forum but could not find something helpful
    http://forums.adobe.com/message/2977659

    [Jongware] wrote:
    I guess that makes it an InDesign problem ...
    Searching yesterday found it is an old topic, but not related to Adobe but to Apple: including thriller plots like that they are preserving the combination command+escape for future projects...
    https://discussions.apple.com/thread/3438952?start=0&tstart=0
    https://discussions.apple.com/thread/3569274?start=0&tstart=0
    Also it has been resolved by programmers with very interesting formulae like the «Escape Key Liberator» (sic):
    http://manytricks.com/blog/?p=1664
    In my situation it was enough to reset the Apple Keyboard shortcuts...
    Thank for your reply.

  • [Bug?] How to use the Tab key in forms

    Ahoy!
    The latest release of Photoshop has "broken" the native behavior of the Tab key in html panels. I'm not sure if this is a bug or just a new API I need to incorporate.
    Expected behavior:
    1. Focus into text field in a form
    2. Hit the Tab key
    3. The next field is focused.
    Actual behavior
    1. Focus into text field in a form
    2. Hit the Tab key
    3. Photoshop hides the application UI (Photoshop hotkey tab behavior).
    Anyone happen to know if there's something that can be done about this?

    Bug is very annoying for our users when they try to input their usernames and passwords to login (often) and also when they're filling out a large form with four fields in it.
    Hope it is fixed soon or a work around provided.
    Tom Wrenn
    Frontend Engineer
    CreativeWorx

  • How to use the windows phone default media player from my app

    hello every one,
    I build a windows phone 8 app , and i used this code, to play a video in the phone media player (didn't want to use MediaElement)
    using Microsoft.Phone.Tasks;MediaPlayerLauncher mediaPlayerLauncher = new MediaPlayerLauncher();
    i just see that in windows phone 8.1 i can't use this namespace and a lot of others, (I didn't understand why...)
    and i want to lunch a video in the phone media player instead using a MediaElment
    how can i do it?
    thanks,
    Or

    Hi Or,
    Using
    Launcher class is fine (not sure if you are playing with 8.1 Silverlight or runtime), you can launcher default system app by following code:
    var success = await Windows.System.Launcher.LaunchFileAsync(file);
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to use the Compounding Key in BPC10NW like BW info objects?

    Hi experts.
    We are longing the suitable solution in BPC-NW 10.0 to deal with compounding key like BW info objects.
    We want to define the dimension with compounding key MATERIAL and PLANT, but BPC-NW 10.0 doesn't support it. Therefore we just defined the dimension "PLANT" as entity and "MATERIAL" as user-defined dimension with concatinated key "Material code-Plant code" as ID.
    For instance:
    -[Dimension PLANT] as type-E (entity)
    ID
    1000
    2000
    3000
    -[Dimension MATERIAL] as type-U (user-defined)
    ID        ENTITY MATNR
    1000-AAAA 1000   AAAA
    1000-BBBB 1000   BBBB
    2000-AAAA 2000   AAAA
    2000-CCCC 2000   CCCC
    3000-BBBB 3000   BBBB
    3000-CCCC 3000   CCCC
    (ENTITY and MATNR were defined as properties, and ENTITY filled the each member including dimension Plant)
    Now we built a input form with following conditions:
    -Page axis : ACCOUNT=Revenue, etc...
    -Row axis : ENTITY=1000 or 2000, MATERIAL=all
    -Column axis : TIME=Jan, Feb, Mar...
    The result report came out as follows:
    Revenue
    PLANT  MATERIAL   Jan Feb Mar ...
    1000   1000-AAAA  0   0   0   ...
    1000   1000-BBBB  0   0   0   ...
    1000   2000-AAAA  0   0   0   ...
    1000   2000-CCCC  0   0   0   ...
    1000   3000-BBBB  0   0   0   ...
    1000   3000-CCCC  0   0   0   ...
    2000   1000-AAAA  0   0   0   ...
    2000   1000-BBBB  0   0   0   ...
    2000   2000-AAAA  0   0   0   ...
    2000   2000-CCCC  0   0   0   ...
    2000   3000-BBBB  0   0   0   ...
    2000   3000-CCCC  0   0   0   ...
    But we expected to have a report restricted MATERIAL with their property on specified PLANT in member selector such as:
    Revenue
    PLANT  MATERIAL   Jan Feb Mar ...
    1000   1000-AAAA  0   0   0   ...
    1000   1000-BBBB  0   0   0   ...
    2000   2000-AAAA  0   0   0   ...
    2000   2000-CCCC  0   0   0   ...
    How do we obtain the expected result? Please give us the good solution!
    Best regards,
    Masa

    Hi Vadim.
    GREAT! Our requirement is fulfilled by that way you described. Special thanks for your help!!!
    Best regards,
    Masa

  • Mapping the "Windows" key in Gnome

    Hi,
    I want to use the Windows key for several keyboard shortcuts (e.g. Win+E to open Nautilus). By default it's not working. I found a solution described on the wiki: https://wiki.archlinux.org/index.php/GN … ows.22_key
    I applied it, and it works ... but not quite. It's quite a strange behaviour.
    The following works:
    1. Press the "Windows" key and keep it pressed
    2. Press the E key
    3. Release the E key
    4. Release the "Windows" key
    The following does not work:
    1. Press the "Windows" key and keep it pressed
    2. Press the E key
    3. Release the "Windows" key
    4. Release the E key
    Has anybody experienced something like this? Any idea what's wrong here?
    Razvan
    Last edited by roti (2013-06-06 20:58:13)

    What happens if you just press and release the 'Windows' key on its own? I seem to recall a similar issue a long time ago, and I think it turned out that the 'Windows' key alone was activating the hotkey function.

  • I can not find how to use the basic Mac air keyboard. where do i find it or do a tutorial board

    I am new to the Mac worls and hardly used a PC . I used a Blackberry. How can i find how to use the macair key board. I can not get the plus sign or the brackets on my leyboard to work. The option key is called the atl key.. There is no easy guide for how to use all the Buttons on the Key board. where do i find them

    Hello Sanjit_Das:
    sorry for my english again !.
    My purpose is almost the same as this:
    https://forums.adobe.com/message/6137964#6137964#6137964
    But I do not know which  path must specify when the video is uploaded to assets:
    Sorry to ask something so absurd.
    I tried putting all
    <source src = "assets / Myvideo.mp4" />
    not working
    <source src = "C: \ Users \ Angel \ Downloads \ NEW \ pruebamusevideo \ assets/Myvideo.mp4">
    not work.
    etc
    Presenting want to work from any computer, DVD, memory stick ...
    I'm going crazy.
    I know it's something about the route.
    From muse Vimeo links to work, but when I export them to HTML not working. I guess it's a problem related to the same.
    Thank you very much again.

  • How do I delete Windows 7 from Paralells so that I can use the Product Key on a different computer?

    I bought Windows 7 to install on my Mac via Paralells. When I wasn't home, my brother took it and installed it on his computer. Now, I was able to install Windows 7 on my computer but I cannot activate it, since I can only use the Product Key for one computer. How can I get the Product Key deactivated so that I can use it on my computer?

    Please post Parallels related questions on the Parallels forums.  Apple Communities only provide support for Apple products:
    http://forums.parallels.com

Maybe you are looking for

  • My files are not uploading; progress bar stops and I get an error message

    Last night (dec. 23) I was trying to upload 30 photo files. The progress bar works, but it either stalls or at the end I get an error message. These are time critical, I have a client waiting for the photos. I tried sending just a couple of photos, b

  • How to transfer safari to firefox browser

    When I downloaded Firefox, the program asked if I wanted to use Firefox Start as my browser or transfer Safari to Firefox. I forgot to select Safari. How do I find the option to choose Safari?

  • In the shop? waiting how long?

    Just curious to see how long people have been waiting to get their macbooks back from the repair center... I'll start: 3 weeks tomorrow, part won't be in till friday, gonna probably be 4 weeks at the earliest when I'll get itb ack.

  • Error:caller 70 missing

    Hi friends, whar are the possible scenarios for the error: caler 70 missing nad how to correct it? Regards, Rajesh

  • Search Option - Target Window

    Hi, I'm currently configuring the search functionality for the standard search box at the top left of the screen-within the Portal Tool Area.  When the user presses the search button, the result set to be displayed within a new window however i wish