PKM-er / obsidian-editing-toolbar

An obsidian toolbar plugin, modified from the Cmenu plugin
Mozilla Public License 2.0
824 stars 29 forks source link

using editor bar on mobile keeps closing keyboard #143

Open kulizivo opened 5 months ago

kulizivo commented 5 months ago

Basically, every time I try to use the toolbar it ends up closing the keyboard on everything except the highlighter. This means every other command will end up closing the keyboard and only leaving the toolbar active.

codey-badger commented 1 month ago

Are u still having this issue? If yes don't forget to leave the devices info ^^

kulizivo commented 1 month ago

@codey-badger Yes Android 13 Redmi note 10Pro 128 - 6ram Minimal theme

ChasKane commented 3 weeks ago

same, although the toolbar does seem to bring the keyboard back up after a half second or so.

I ran into this seemingly unavoidable issue when trying to develop my own toolbar -- it seems that all clicks/taps on anything other than text, even buttons inserted into the markdown, cause the keyboard to disappear. @codey-badger do you think the keyboard reappearing behavior new since last week? I'm wondering if you've looked at this and concluded that's the best that can be done given Obsidian's closed source.

codey-badger commented 3 weeks ago

@ChasKane yeah it's quite unfortunate and annoying tbh. Today tested the plugin and sometimes the toolbar itself disappears from top or has the erratic behavior with the keyboard.

As a heavy mobile user, my unsolicited advice is:

  1. Sticking to the core plugins and functions as much as possible (I use Slash commands extensively).
  2. Refining the workflow using the command configure mobile toolbar and Hotkeys (option in settings).

For more functionality you could try Note Toolbar Plugin and see how it goes. Although I'm comfortable with the core mobile toolbar + Commander Plugin + QuickAdd Plugin here and there.

Another recommendation I'm currently testing is Text format plugin.

Finally Settings Search Plugin to make customization easier.

Hope that helps!

kulizivo commented 3 weeks ago

@ChasKane & @codey-badger try popkit on mobile

ChasKane commented 3 weeks ago

o.0 ahhhhh @kulizivo is your account ok? popkit looks like spam.

ChasKane commented 3 weeks ago

@codey-badger configure mobile toolbar is a gem and so is the reminder about slash commands, thank you! Otherwise, l think we're in the same boat. I have a dream of a colorful, dynamic, animation-ladened toolbar with similar features to this plugin but a smoother UI and better customization potential, but with Obsidian being as opaque as it is, I have to relent that my energy is better spent elsewhere.

kulizivo commented 3 weeks ago

@ChasKane really? this plugin Popkit?

ChasKane commented 2 weeks ago

@kulizivo oh I love this plugin, but I can't get the commands to drag properly in the settings pane. Are you having this issue too?

kulizivo commented 2 weeks ago

@ChasKane yes its really bad on mobile but on desktop it works much better

ChasKane commented 1 week ago

@codey-badger the erratic behavior we discussed seems to be addressed by adding event.preventDefault() to both the click and mousedown event listeners set on each command button. I'll have a prototype of my own toolbar up soon

onClick={(e) => {
  global.app.commands.executeCommandById(command.id);
  e.preventDefault();
}}
onMouseDown={(e) => e.preventDefault()}