Skip to content

Commit

Permalink
Use Command-` as escape
Browse files Browse the repository at this point in the history
For some keyboards, there is no escape key at all.
  • Loading branch information
Chaoji Li committed Oct 19, 2020
1 parent ca16f91 commit e7651d5
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dospad.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -3807,7 +3807,7 @@
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = "Resources/iDOS-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MARKETING_VERSION = 2.0.1;
MARKETING_VERSION = 2.1;
OTHER_LDFLAGS = (
"-framework",
Foundation,
@@ -3839,7 +3839,7 @@
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = "Resources/iDOS-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MARKETING_VERSION = 2.0.1;
MARKETING_VERSION = 2.1;
OTHER_LDFLAGS = (
"-framework",
Foundation,
@@ -3987,7 +3987,7 @@
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = "Resources/iDOS-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MARKETING_VERSION = 2.0.1;
MARKETING_VERSION = 2.1;
OTHER_LDFLAGS = (
"-framework",
Foundation,
4 changes: 4 additions & 0 deletions dospad/Shared/KeyboardSpy.m
Original file line number Diff line number Diff line change
@@ -94,6 +94,7 @@ - (id)initWithFrame:(CGRect)frame
@"F12": @(SDL_SCANCODE_F12),
@"ALT": @(SDL_SCANCODE_LALT),
@"CTRL": @(SDL_SCANCODE_LCTRL),
@"ESC": @(SDL_SCANCODE_ESCAPE),
}];

// For text selection in dos programs
@@ -141,6 +142,7 @@ - (id)initWithFrame:(CGRect)frame
// and we won't get those key commands.
// Therefore we provide an alternative way to generate function
// keys.
[self registerCommandPrefix:@"`" title:@"ESC"];
[self registerCommandPrefix:@"1" title:@"F1"];
[self registerCommandPrefix:@"2" title:@"F2"];
[self registerCommandPrefix:@"3" title:@"F3"];
@@ -151,6 +153,8 @@ - (id)initWithFrame:(CGRect)frame
[self registerCommandPrefix:@"8" title:@"F8"];
[self registerCommandPrefix:@"9" title:@"F9"];
[self registerCommandPrefix:@"0" title:@"F10"];
[self registerCommandPrefix:@"-" title:@"F11"];
[self registerCommandPrefix:@"=" title:@"F12"];
[self registerCommandPrefix:@"c" title:@"CTRL"];
[self registerCommandPrefix:@"x" title:@"ALT"];
return self;

0 comments on commit e7651d5

Please sign in to comment.