diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-30 09:55:13 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-30 09:56:06 -0800 |
commit | f5a6f434c58262d45d193f4a361013f12a7ac0c8 (patch) | |
tree | 6e16271f20697f00d148f0dc43a035d693d95d22 /src/teliva.h | |
parent | ce3ad17a0550cb85ea47fe79412c40d95a7a9a4e (diff) | |
download | teliva-f5a6f434c58262d45d193f4a361013f12a7ac0c8.tar.gz |
better cross-platform backspace support
I wish I could just hide KEY_BACKSPACE and prevent myself from using it by accident. Then again, I'm not making this smarts available in Teliva programs themselves. Just for the Teliva environment.
Diffstat (limited to 'src/teliva.h')
-rw-r--r-- | src/teliva.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/teliva.h b/src/teliva.h index 1f57a13..65c1020 100644 --- a/src/teliva.h +++ b/src/teliva.h @@ -29,4 +29,10 @@ enum KEY_ACTION { CTRL_SLASH = 31, }; +#if __APPLE__ + #define TELIVA_BACKSPACE_KEY_NAME "delete/backspace" +#else + #define TELIVA_BACKSPACE_KEY_NAME "backspace" +#endif + #endif |