Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 96ac97c

Browse filesBrowse files
authored
Merge pull request #9836 from jklymak/mac-allow-shift
ENH/MacOS Allow shift modifiers to key events
2 parents a2cb05d + 6284e12 commit 96ac97c
Copy full SHA for 96ac97c

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed

‎src/_macosx.m

Copy file name to clipboardExpand all lines: src/_macosx.m
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2608,8 +2608,11 @@ - (const char*)convertKeyEvent:(NSEvent*)event
26082608

26092609
unichar uc = [[event charactersIgnoringModifiers] characterAtIndex:0];
26102610
NSString* specialchar = [specialkeymappings objectForKey:[NSNumber numberWithUnsignedLong:uc]];
2611-
if (specialchar)
2611+
if (specialchar){
2612+
if ([event modifierFlags] & NSShiftKeyMask)
2613+
[returnkey appendString:@"shift+" ];
26122614
[returnkey appendString:specialchar];
2615+
}
26132616
else
26142617
[returnkey appendString:[event charactersIgnoringModifiers]];
26152618

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.