Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple keyboard (bindingmap) support #3

Open
shabble opened this issue Apr 20, 2011 · 0 comments
Open

Multiple keyboard (bindingmap) support #3

shabble opened this issue Apr 20, 2011 · 0 comments

Comments

@shabble
Copy link
Owner

shabble commented Apr 20, 2011

Currently, although commands exist to create/destroy keyboards, only a single one is ever created and used (in gui-readline.c:init())

By moving the actual keybindings state into the KEYBOARD_REC object, it should be possible to design an API in which
there are multiple defined keyboards, each with their own set of bindings. A perl API can then create/destroy and switch between
active keybinding maps.

Rationale: Various scripts could benefit from being able to bind keys in a modal fashion, without having to resort to capturing and reparsing gui key pressed each time. Allowing a script to create a new keyboard which has hte desired bindings/functions and
a 'default keyboard' binding to activate it will eliminate most of these issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant