diff options
author | Ian Thompson <quornian@googlemail.com> | 2008-07-15 11:04:31 +0400 |
---|---|---|
committer | Ian Thompson <quornian@googlemail.com> | 2008-07-15 11:04:31 +0400 |
commit | dbb61988fdaa6085912dee6ab8f5569e63ef88fb (patch) | |
tree | 2b1334417dbe2536851bed215777f89e416b6007 /source/blender/include/BIF_keyval.h | |
parent | 14c1ed08108df6178a55f6d7f818f19a926ae1df (diff) |
Any script can now register a unique key combination as part of its bpy header. For a supported space type, the user may press this shortcut to invoke the script.
Space types that are to support shortcuts like this should call BPY_menu_do_shortcut(...) from the event queue read method (See winqreadtextspace in drawtext.c for example)
Diffstat (limited to 'source/blender/include/BIF_keyval.h')
-rw-r--r-- | source/blender/include/BIF_keyval.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/include/BIF_keyval.h b/source/blender/include/BIF_keyval.h index 70d248ded91..9693684e425 100644 --- a/source/blender/include/BIF_keyval.h +++ b/source/blender/include/BIF_keyval.h @@ -31,6 +31,9 @@ #define BIF_KEYVAL_H char *key_event_to_string(unsigned short event); +int decode_key_string(char *str, unsigned short *key, unsigned short *qual); #endif + + |