Java System-Wide Keyboard Shortcut

后端 未结 7 826
北海茫月
北海茫月 2020-12-01 04:12

Is there any way or a library to get a system-wide (global) keyboard shortcut to perform an action in a Java application?

7条回答
  •  眼角桃花
    2020-12-01 04:28

    There is not, but in windows you can use this:

    jintellitype

    Unfortunately there is nothing I'm aware of for Linux and OSX, probably that's why it doesn't come with java out of the box.

    If you find for the other platforms post it here please :)

    Just for couriosity, what are you doing with that?

提交回复
热议问题