Introduce UI_CTRL_KEY and use where appropriate (#4431)

This is an abstraction for the name of the 'Ctrl' (or equivalent) key on
linux, windows and apple
This commit is contained in:
dobbelaj
2018-06-17 11:20:00 +02:00
committed by Lukas W
parent 1bdaafc488
commit d11966a7ea
8 changed files with 31 additions and 150 deletions

View File

@@ -141,5 +141,11 @@ typedef sample_t sampleFrameA[DEFAULT_CHANNELS] __attribute__((__aligned__(ALIGN
#define STRINGIFY(s) STR(s)
#define STR(PN) #PN
// Abstract away GUI CTRL key (linux/windows) vs ⌘ (apple)
#ifdef LMMS_BUILD_APPLE
# define UI_CTRL_KEY "⌘"
#else
# define UI_CTRL_KEY "Ctrl"
#endif
#endif