开发者

SWT: Convert keycode to string

开发者 https://www.devze.com 2023-02-27 08:11 出处:网络
I\'m writing a text widget in Java SWT that displays a user-defined keyboard shortcut, such as CTRL + A. Is there some way to map SWT\'s internal stateMask-keyCode pairs to a string, or 开发者_开发百科

I'm writing a text widget in Java SWT that displays a user-defined keyboard shortcut, such as CTRL + A. Is there some way to map SWT's internal stateMask-keyCode pairs to a string, or 开发者_开发百科do I have to do this by hand?


See org.eclipse.jface.bindings.keys.KeySequenceText and org.eclipse.jface.bindings.keys.KeySequence for a similar usage.


org.eclipse.jface.bindings.keys.SWTKeyLookup would help for simple string [Upper Case] to SWT keycode mapping

0

精彩评论

暂无评论...
验证码 换一张
取 消