Customizable Shortcuts in Java Application

前端 未结 2 1134
渐次进展
渐次进展 2020-11-28 16:14

I would like to include customizable keyboard shortcuts in my Java application (the user can change them). Since this is not very unusual request, I was wondering if there e

2条回答
  •  旧巷少年郎
    2020-11-28 16:51

    I don't know of any libraries, but if your stuck you should take a look at KeyboardFocusManager & KeyboardEventDispatcher or KeyboardEventPostProcessor.

    These will at least give you access to the system level key events

提交回复
热议问题