Skip to content

Commit

Permalink
fix bug: 上下键选词在macOS Big Sur(version 11)不work的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyuwei committed Jan 19, 2021
1 parent b0eabbd commit 75ac270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InputController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ - (BOOL)onKeyEvent:(NSEvent *)event client:(id)sender {

- (BOOL)isMojaveAndLaterSystem {
NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
return version.majorVersion == 10 && version.minorVersion > 13;
return (version.majorVersion == 10 && version.minorVersion > 13) || version.majorVersion > 10;
}

- (BOOL)deleteBackward:(id)sender {
Expand Down

0 comments on commit 75ac270

Please sign in to comment.