-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aadb738
commit 9615244
Showing
5 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
Filter = { | ||
Bundles = ( | ||
"com.apple.UIKit" | ||
); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#import <UIKit/UIKit.h> | ||
|
||
// Unlock iPadOS keyboard | ||
BOOL forcePadKBIdiom = YES; | ||
UIUserInterfaceIdiom UIKeyboardGetSafeDeviceIdiom(); | ||
%hookf(UIUserInterfaceIdiom, UIKeyboardGetSafeDeviceIdiom) { | ||
return forcePadKBIdiom ? UIUserInterfaceIdiomPad : %orig; | ||
} | ||
|
||
%hook UIKeyboardImpl | ||
+ (UIEdgeInsets)deviceSpecificPaddingForInterfaceOrientation:(NSUInteger)arg1 inputMode:(id)arg2 { | ||
forcePadKBIdiom = NO; | ||
UIEdgeInsets result = %orig; | ||
forcePadKBIdiom = YES; | ||
return result; | ||
} | ||
%end |