I would like to allow the user to create their own key equivalents. Below is a snap of the prefs page in Google Voice as an example. I'm stumped on how to record the shortcut in a field as shown below. I've yet to find an example or any help on this. I would really appreciate any suggestions.

Thanks in advance.

enter image description here

有帮助吗?

解决方案

For recording the shortcuts I suggest you take a look at ShortcutRecorder, here's a fork with a much improved version on Github:

https://github.com/Kentzo/ShortcutRecorder

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top