Skip to content

Instantly share code, notes, and snippets.

@cmsj
Created January 14, 2015 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmsj/ee5b5a1acdf5e2529188 to your computer and use it in GitHub Desktop.
Save cmsj/ee5b5a1acdf5e2529188 to your computer and use it in GitHub Desktop.
diff --git a/extensions/keycodes/internal.m b/extensions/keycodes/internal.m
index 8a1731e..dcdf405 100644
--- a/extensions/keycodes/internal.m
+++ b/extensions/keycodes/internal.m
@@ -24,7 +24,7 @@ int keycodes_cachemap(lua_State* L) {
kVK_ANSI_4, kVK_ANSI_5, kVK_ANSI_6, kVK_ANSI_7, kVK_ANSI_8, kVK_ANSI_9,
kVK_ANSI_Grave, kVK_ANSI_Equal, kVK_ANSI_Minus, kVK_ANSI_RightBracket,
kVK_ANSI_LeftBracket, kVK_ANSI_Quote, kVK_ANSI_Semicolon, kVK_ANSI_Backslash,
- kVK_ANSI_Comma, kVK_ANSI_Slash, kVK_ANSI_Period,
+ kVK_ANSI_Comma, kVK_ANSI_Slash, kVK_ANSI_Period, kVK_ISO_Section,
};
TISInputSourceRef currentKeyboard = TISCopyCurrentKeyboardInputSource();
@@ -101,6 +101,7 @@ int keycodes_cachemap(lua_State* L) {
pushkeycode(L, kVK_ANSI_Comma, ",");
pushkeycode(L, kVK_ANSI_Slash, "/");
pushkeycode(L, kVK_ANSI_Period, ".");
+ pushkeycode(L, kVK_ISO_Section, "§");
}
CFRelease(currentKeyboard);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment