On ipad, is there a way to execute a command when external keyboard is de/activated

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

image
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:

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. :see_no_evil_monkey:

1 Like