-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: support android app #191
Conversation
Thanks for the PR! Is this ready for review, or does it still need further testing and debugging? |
It is not ready. Some features still need testing and debugging. |
I'm sorry for the misoperation, I'm not so familiar with it because it's my first time opening a PR. |
src/latex_suite.ts
Outdated
@@ -109,7 +116,8 @@ export const handleTabstops = (view: EditorView) => | |||
// CodeMirror extensions that are required for Latex Suite to run | |||
export const latexSuiteExtensions = (settings: LatexSuiteProcessedSettings) => [ | |||
getLatexSuiteConfigExtension(settings), | |||
Prec.highest(EditorView.domEventHandlers({"keydown": onKeydown})), // Register keymaps | |||
Prec.highest(EditorView.domEventHandlers({"keydown": | |||
Platform.isAndroidApp ? onAndroidKeydown : onKeydown})), // Register keymaps. Compatibility for android users with IME keyboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to remove the Platform.isAndroidApp
check and make the fix platform-independent? The goal is to make Latex Suite a pure CodeMirror extension, with no dependency on Obsidian. This will allow it to be embedded in any other CM editor, e.g. on the web.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, then I need to edit some code in latex_suite.ts to make this fix platform-independent, which requires more testing and debugging.
Hi @IEatCodeDaily ,@awsharif, |
Sorry, didn't check email for quite a while. Didn't know I got tagged here. Just tested it on Samsung A50 and Samsung Galaxy Tab S6 (w/ and w/out physical keyboard). The same double snippets entry bug I mentioned in #52 still happen when make.md is also installed though. But I have no idea whether the fault is on make.md or latex-suite. Amazing job! I'll be using your fork on my phone/tablet until the PR is (hopefully) approved. Thank you so much! |
Heya I just set up the plugin (V1.9.0) on my Tab S9 (Android 14, One UI 6.0), I've run into similar issues as to what's been described here and in #213 Is there another solution I've missed somewhere? I'd like the predictive text but I suppose I could just switch it off when using the plugin. Let me know if there's anything I can do to help, I don't have the time rn to try and figure this out & get a PR going sorry. |
@oldkingOK |
@CamWam |
See #52