diff options
author | Stefan Westerfeld <stefan@space.twc.de> | 2019-06-23 16:43:52 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-25 10:26:19 +0200 |
commit | 27dbe9421e63e253afd6ba9885d7988220be605f (patch) | |
tree | d0f3a5478967aced38f6b99a2e143b5225e608d2 /pugl/pugl_osx.m | |
parent | d746d66836757c0a43109ac79888da6fa4513cd8 (diff) | |
download | pugl-27dbe9421e63e253afd6ba9885d7988220be605f.tar.gz pugl-27dbe9421e63e253afd6ba9885d7988220be605f.tar.bz2 pugl-27dbe9421e63e253afd6ba9885d7988220be605f.zip |
Handle backspace and delete consistently across platforms
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r-- | pugl/pugl_osx.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index cede913..21684ea 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -238,6 +238,8 @@ keySymToSpecial(PuglView* view, NSEvent* ev) case NSF10FunctionKey: return PUGL_KEY_F10; case NSF11FunctionKey: return PUGL_KEY_F11; case NSF12FunctionKey: return PUGL_KEY_F12; + case NSDeleteCharacter: return PUGL_KEY_BACKSPACE; + case NSDeleteFunctionKey: return PUGL_KEY_DELETE; case NSLeftArrowFunctionKey: return PUGL_KEY_LEFT; case NSUpArrowFunctionKey: return PUGL_KEY_UP; case NSRightArrowFunctionKey: return PUGL_KEY_RIGHT; |