KeyMaps(bpy_struct)

base class — bpy_struct

class bpy.types.KeyMaps(bpy_struct)

Collection of keymaps

new(name, space_type='EMPTY', region_type='WINDOW', modal=False)

new

Parameters:
  • name (string) – Name
  • space_type (enum in [‘EMPTY’, ‘VIEW_3D’, ‘GRAPH_EDITOR’, ‘OUTLINER’, ‘PROPERTIES’, ‘FILE_BROWSER’, ‘IMAGE_EDITOR’, ‘INFO’, ‘SEQUENCE_EDITOR’, ‘TEXT_EDITOR’, ‘AUDIO_WINDOW’, ‘DOPESHEET_EDITOR’, ‘NLA_EDITOR’, ‘SCRIPTS_WINDOW’, ‘TIMELINE’, ‘NODE_EDITOR’, ‘LOGIC_EDITOR’, ‘CONSOLE’, ‘USER_PREFERENCES’], (optional)) – Space Type
  • region_type (enum in [‘WINDOW’, ‘HEADER’, ‘CHANNELS’, ‘TEMPORARY’, ‘UI’, ‘TOOLS’, ‘TOOL_PROPS’, ‘PREVIEW’], (optional)) – Region Type
  • modal (boolean, (optional)) – Modal
Returns:

Key Map, Added key map.

Return type:

KeyMap

find(name, space_type='EMPTY', region_type='WINDOW')

find

Parameters:
  • name (string) – Name
  • space_type (enum in [‘EMPTY’, ‘VIEW_3D’, ‘GRAPH_EDITOR’, ‘OUTLINER’, ‘PROPERTIES’, ‘FILE_BROWSER’, ‘IMAGE_EDITOR’, ‘INFO’, ‘SEQUENCE_EDITOR’, ‘TEXT_EDITOR’, ‘AUDIO_WINDOW’, ‘DOPESHEET_EDITOR’, ‘NLA_EDITOR’, ‘SCRIPTS_WINDOW’, ‘TIMELINE’, ‘NODE_EDITOR’, ‘LOGIC_EDITOR’, ‘CONSOLE’, ‘USER_PREFERENCES’], (optional)) – Space Type
  • region_type (enum in [‘WINDOW’, ‘HEADER’, ‘CHANNELS’, ‘TEMPORARY’, ‘UI’, ‘TOOLS’, ‘TOOL_PROPS’, ‘PREVIEW’], (optional)) – Region Type
Returns:

Key Map, Corresponding key map.

Return type:

KeyMap

find_modal(name)

find_modal

Parameters:name (string) – Operator Name
Returns:Key Map, Corresponding key map.
Return type:KeyMap

Inherited Properties

Inherited Functions

References

Previous topic

KeyMapItems(bpy_struct)

Next topic

KeyboardSensor(Sensor)