diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-30 15:03:09 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-30 15:03:09 +0200 |
commit | 114e52a60c789c5d1d885a994e8e1bd002b7cc93 (patch) | |
tree | 85c9e5281cb2f8066f18394a1db4dfe662dc5316 /src/ui/keys.h | |
parent | f22ee7c9ac27fe05649219535a05c21281709607 (diff) |
Updating LabelWidget command key
If the key bindings have a key for a command, LabelWidget will use it.
Diffstat (limited to 'src/ui/keys.h')
-rw-r--r-- | src/ui/keys.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/keys.h b/src/ui/keys.h index 157ddea5..0892bd81 100644 --- a/src/ui/keys.h +++ b/src/ui/keys.h | |||
@@ -43,6 +43,15 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
43 | # define byLine_KeyModifier 0 | 43 | # define byLine_KeyModifier 0 |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | iDeclareType(Binding) | ||
47 | |||
48 | struct Impl_Binding { | ||
49 | int key; | ||
50 | int mods; | ||
51 | iString command; | ||
52 | iString label; | ||
53 | }; | ||
54 | |||
46 | void init_Keys (void); | 55 | void init_Keys (void); |
47 | void deinit_Keys (void); | 56 | void deinit_Keys (void); |
48 | 57 | ||
@@ -51,6 +60,7 @@ void save_Keys (const char *saveDir); | |||
51 | 60 | ||
52 | void bind_Keys (const char *command, int key, int mods); | 61 | void bind_Keys (const char *command, int key, int mods); |
53 | void setLabel_Keys (const char *command, const char *label); | 62 | void setLabel_Keys (const char *command, const char *label); |
63 | const iBinding *findCommand_Keys (const char *command); | ||
54 | 64 | ||
55 | //const iString * label_Keys (const char *command); | 65 | //const iString * label_Keys (const char *command); |
56 | //const char * shortcutLabel_Keys (const char *command); | 66 | //const char * shortcutLabel_Keys (const char *command); |