Skip to content

generate custom key code #1532

Answered by jtroo
glehmann asked this question in Q&A
Discussion options

You must be logged in to vote

There isn't a way without modifying some code and recompiling yourself.

You would need to add an OsCode mapping in this file:

OsCode::KEY_SEARCH => Ok(PageCode {

You can pick an arbitrary unused OsCode if there isn't

And then you would add a name for it:

"mwr" | "mousewheelright" => OsCode::MouseWheelRight,

Or otherwise use arbitrary-code or deflocalkeys to name it in the configuration. But probably better to add a name in the code if you're already modifying.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by glehmann
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
macos Issue pertains to macos; jtroo has no macOS devices and does not maintain the support for this OS.
2 participants