(filemode='kaa.filetype.default.defaultmode.DefaultMode',
            editmode='input', keymap=None)
Register keybind.

    filemode -- Mode class name to register keybind.
                  (default 'kaa.filetype.default.defaultmode.DefaultMode)
    editmode -- Editmode to register keybind.
                  Valid values are:'insert', 'command', 'visual', 'visualline'.
                  (default 'input')

    keymap -- Dictionary of keybind and command name.

    ex)
        keybind(
             filemode='kaa.filetype.python.pythonmode.PythonMode',
             keys = {
                    ((ctrl, 'q'), '2'):
                        'editor.splithorz'})   # Assign C-q 2 to split window.
Register keybind.
Register keybind .
def keybind(filemode='kaa.filetype.default.defaultmode.DefaultMode',
            editmode='input', keymap=None):
    """Register keybind.

    filemode -- Mode class name to register keybind.
                  (default 'kaa.filetype.default.defaultmode.DefaultMode)
    editmode -- Editmode to register keybind.
                  Valid values are:'insert', 'command', 'visual', 'visualline'.
                  (default 'input')

    keymap -- Dictionary of keybind and command name.

    ex)
        keybind(
             filemode='kaa.filetype.python.pythonmode.PythonMode',
             keys = {
                    ((ctrl, 'q'), '2'):
                        'editor.splithorz'})   # Assign C-q 2 to split window.
    """

    add_class_addon(filemode, 'keybind', (editmode, keymap))
def keybind ( filemode = 'kaa.filetype.default.defaultmode.DefaultMode' , editmode = 'input' , keymap = None ) : add_class_addon ( filemode , 'keybind' , ( editmode , keymap ) )