File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 19
19
<key >CFBundlePackageType </key >
20
20
<string >APPL </string >
21
21
<key >CFBundleShortVersionString </key >
22
- <string >1.0.1 </string >
22
+ <string >1.0.2 </string >
23
23
<key >CFBundleVersion </key >
24
- <string >1010 </string >
24
+ <string >1020 </string >
25
25
<key >LSMinimumSystemVersion </key >
26
26
<string >$(MACOSX_DEPLOYMENT_TARGET) </string >
27
27
<key >LSUIElement </key >
Original file line number Diff line number Diff line change @@ -18,6 +18,28 @@ - (BOOL)performKeyEquivalent:(NSEvent *)event
18
18
{
19
19
[self .textFieldDelegate onTextFieldEnterButtonClicked: self ];
20
20
}
21
+
22
+ if (([event modifierFlags ] & NSDeviceIndependentModifierFlagsMask ) == NSCommandKeyMask )
23
+ {
24
+ // The command key is the ONLY modifier key being pressed.
25
+ if ([[event charactersIgnoringModifiers ] isEqualToString: @" x" ])
26
+ {
27
+ return [NSApp sendAction: @selector (cut: ) to: [[self window ] firstResponder ] from: self ];
28
+ }
29
+ else if ([[event charactersIgnoringModifiers ] isEqualToString: @" c" ])
30
+ {
31
+ return [NSApp sendAction: @selector (copy: ) to: [[self window ] firstResponder ] from: self ];
32
+ }
33
+ else if ([[event charactersIgnoringModifiers ] isEqualToString: @" v" ])
34
+ {
35
+ return [NSApp sendAction: @selector (paste: ) to: [[self window ] firstResponder ] from: self ];
36
+ }
37
+ else if ([[event charactersIgnoringModifiers ] isEqualToString: @" a" ])
38
+ {
39
+ return [NSApp sendAction: @selector (selectAll: ) to: [[self window ] firstResponder ] from: self ];
40
+ }
41
+ }
42
+
21
43
return [super performKeyEquivalent: event];
22
44
}
23
45
You can’t perform that action at this time.
0 commit comments