What I’m trying to do
On iPad, I would like to run a “Toggle typewriter scrolling” command (from Typewriter plugin) when external keyboard is activated and deactivated.
Things I have tried
No ideas. However, I think I saw some examples of scripts able to detect keyboard status.
This deals with scrolling but I believe also keyboard open/close status, so may provide a starting point.
Sorry, what does? You meant this? Hide Obsidian app header when scrolling and opening your softkeyboard
Actually I was hoping @Abisheik could come up with some magic.
Only applies to the softkeyboard.
I’ll look into it later and let you know if I find something!
2 Likes
Progress:
Figured out a command that shows if a physical keyboard is connected. Now, to figure out how to react to it instead of having to keep running the command to check…
2 Likes
Alright, hop into this thread and let me know what plugin you’re using for the typewriter scrolling:
Disclaimer
Is this project open source? Yes
Is this project completely free? Yes
Is this project vibe-coded beyond the author’s ability to comprehend how it works? No
Save this as a .js file and point CodeScript ToolKit to it as your “Startup script path.” It listens to the softkeyboard being shown or hidden as well if any key is pressed. If one of those things happen, it’ll check if a physical keyboard is connected. If a physical keyboard was connected and wasn’t connected during the last …
If the plugin only has a toggle command available via the command palette, maybe I can figure out how to specifically turn it off and on so that it never de-syncs from the physical keyboard state.
2 Likes
WOW! Thank you so much.
I’m using Typewriter Mode plugin, it has a toggle command, as well as enable/disable commands.
I’d appreciate help with finding command’s ids, I work only on iPad and no console here.
Sorry, yes, I meant to paste that link. And between reading your post and writing my own I forgot your keyboard was external.
1 Like