# osd-bind-key(2)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

osd-bind-key - Create key binding for OSD dialog
osd-unbind-key - Remove key binding from OSD dialog

## SYNOPSIS

osd-bind-key n "command" "key"
osd-unbind-key n "key"

## DESCRIPTION

osd-bind-key creates a local key binding for a given osd dialog, binding the command command to the keyboard input key. Only the current root dialog's local bindings are used, local bindings of included dialogs or other root dialogs currently displayed are ignored.

Osd local bindings take priority over default osd bindings, local bindings created using ml-bind-key(2) are also used, but any current buffer local bindings created using buffer-bind-key(2) are ignored.

## NOTES

The prefix commands cannot be rebound with this command.

Key response time linearly increases with each osd binding added.

As only the root dialog's bindings are used, creating note-book page specific bindings can be awkward. Typically all required keys are bound to the same command which, depending on the page that is currently being displayed, checks if the key pressed is bound on the current page and if so calls the required command. See organizer(3), defined in `organize.emf` for an example of this operation.

## SEE ALSO

osd(2), global-bind-key(2), ml-bind-key(2), buffer-bind-key(2), global-unbind-key(2).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>