From 702559cfb17e89d89625b9611d18ad04fe994bb3 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 21 Oct 2017 10:54:59 -0700 Subject: [PATCH] Define kDeleteKeyCode for use in key handling. --- Frameworks/RSCore/RSCore/NSEvent+RSCore.h | 2 ++ Frameworks/RSCore/RSCore/NSEvent+RSCore.m | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Frameworks/RSCore/RSCore/NSEvent+RSCore.h b/Frameworks/RSCore/RSCore/NSEvent+RSCore.h index ca2d518a1..5472ece02 100755 --- a/Frameworks/RSCore/RSCore/NSEvent+RSCore.h +++ b/Frameworks/RSCore/RSCore/NSEvent+RSCore.h @@ -10,6 +10,8 @@ NS_ASSUME_NONNULL_BEGIN +extern unichar kDeleteKeyCode; + @interface NSEvent (RSCore) - (void)rs_getCommandKeyDown:(BOOL *)commandKeyDown optionKeyDown:(BOOL *)optionKeyDown controlKeyDown:(BOOL *)controlKeyDown shiftKeyDown:(BOOL *)shiftKeyDown; diff --git a/Frameworks/RSCore/RSCore/NSEvent+RSCore.m b/Frameworks/RSCore/RSCore/NSEvent+RSCore.m index 371013282..9972abc48 100755 --- a/Frameworks/RSCore/RSCore/NSEvent+RSCore.m +++ b/Frameworks/RSCore/RSCore/NSEvent+RSCore.m @@ -10,6 +10,8 @@ #import "NSString+RSCore.h" +unichar kDeleteKeyCode = 127; + @implementation NSEvent (RSCore)