Bug: Input method switcher popup disappears when long-pressing the globe key in Obsidian (language switch)

When using Fcitx5 Android in the Obsidian Android app, long-pressing the globe key (:globe_with_meridians:) to open the input method/language switcher causes the popup to disappear immediately.

Steps to reproduce

  1. Open Obsidian on Android.
  2. Open a note and tap the text editor to bring up the keyboard.
  3. Long-press the globe key (:globe_with_meridians:) on the keyboard.
  4. The input method/language switcher popup appears briefly.
  5. The popup immediately disappears by itself.

Expected result

The input method/language switcher popup should remain visible after long-pressing the globe key, allowing the user to select another input method or language.

Actual result

The popup appears but immediately disappears, making it impossible to select an item from the popup.

Environment

App: Obsidian for Android
Input method: Gboard Android
Platform: Android
Affected input field: Obsidian Markdown text editor


Additional information

Thanks

Steps to reproduce

  1. Open any note or text field (even the search box) on Android and use Google’s G Board as your keyboard. You must already have multiple keyboard layouts / language input schemes installed within G Board.
  2. Long press the space bar or language switcher key, which should open a modal for selecting a keyboard/ language from a list of those that have been installed.

Did you read and follow the Troubleshooting Guide ? [Yes/No]

Yes. The bug still appears in restricted mode. I even tried with and without Vim keys. The bug does not appear in any other text input field in any other app.

Expected result

A modal should appear, allowing for the selection of a different keyboard / language.

Actual result

With this bug the modal either fails to appear at all or closes immediately after opening.

Environment

SYSTEM INFO:
Obsidian version: 1.14.4 (389)
API version: 1.14.4
Operating system: Android 16 (samsung SM-S9280)
Webview version: 154.0.8037.57
Login status: logged in
Language: en
Catalyst license: none
Live preview: off
Base theme: adapt to system
Community theme: none
Snippets enabled: 1
Restricted mode: off
Plugins installed: 25
Plugins enabled: 15
1: Advanced URI v2.2.0
2: Markdown Furigana v1.3.0
3: Smart Random Note v0.2.1
4: Sort and Permute lines v0.9.0
5: Vimrc Support v0.10.2
6: Dataview v0.5.68
7: Icon Shortcodes v0.9.7
8: Tasks v8.4.0
9: Style Settings v1.0.9
10: Linter v1.33.0
11: Templater v2.25.1
12: Create Note in Folder v1.13.0
13: VirtFolder v1.1.28
14: Media DB v0.9.1
15: Link Exploder v0.3.0

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.


Additional information

https://photos.app.goo.gl/iYtEXVaoAGM7H3McA

Using a Moto G32 with Android 13, also having this issue. Same version of obsidian, no plugins at all, pretty much default. However, this isn’t just an obsidian issue. Also affects any chromium browser, specifically webpages as the address bar, find in page bar, etc are completely fine. For example, I’m typing this on Brave mobile browser (latest version) and it also won’t let me bring up that menu.

I didn’t already have any other Chromium apps on my phone, so I downloaded Brave and, sure enough, the same bug is there. If the issue’s already been fixed upstream, then I hope Obsidian can update their dependencies or maybe even roll back if it’s necessary. Switching keyboards isn’t something most users need to do, but it’s essential for me, so for the time being I can’t use Obsidian any more.

If you go to the gboard settings, go to preferences, there should be a language switch key. Unfortunately it only cycles through them. Seems to be the only option. I also tried a month old version of gboard and still had issues. So not sure what’s going on.

Use the ‘:globe_with_meridians:’ next to the language Language space bar. It helps switch the language without bug.

Doesn’t seem to be an edit button, but with chrome, it’s the canary version that works. And turns out I was testing edge canary wrong, it doesn’t work. But the fact it still works somewhere now.

I have big news! The bug isn’t related to obsidian but with android system webview. Notice the following pattern:

  • Chrome with chromium v155 - broken
  • Chrome canary with chromium v158 - works
  • Brave with Chromium v155 - broken
  • Edge Canary with chromium v157 - broken
  • Obsidian with webview v154 - broken
  • Obsidian with webview v155 - broken
  • Obsidian with webview canary v158 - works

Switch to android system webview canary (make sure to open the app to switch) and it should work. Otherwise, wait until regular we view is updated to v158

This worked for me, thanks. Weirdly, I had to add WebView DevTools to my secure folder and open it from there in order to make the option selectable.

Android system webview beta has now got to v158. So you can switch from canary to beta at least.

I am facing this issue. I don’t have Android system webview installed from PlayStore.

This issue happens for over a month. Just noticed the keyboard switching happens with other apps (Notepad Free for example) and also it works well in Chrome browser itself.

Obsidian Version 1.15.0 (396)
One Ul Core version 5.1
Android version 13

Webview isn’t a public app, it doesn’t appear on the play store or regular app list. Go to settings, apps, all apps, then search for webview. Click on it, then scroll to the bottom, it should say something like “Version 156.0.8078.47”. If so, go to the play store, search for webview beta, install it, open it then set it as the default provider.

I have a similar issue with Samsung keyboard. When I go to the clipboard tool at the toolbar, select a clipvalue, then pressing the delete button should give me a confirmation popup message. It is shown, but immediately goes away and the keyboard as well. When I am in a different edit field (not Obsidian), for instance the app search bar in the apps screen, I succeed to delete. It is such a rare occasion, yet such a weird type of bug.

I found out it is an upstream bug in Webview, not in Obsidian. See specified issue in Chromium: Chromium

It also shows another workflow related issue: when the notifications area is pulled down, the keyboard is lost as well, leaving only a blinking cursor. An additional tap is needed to invoke the keyboard.

The Samsung keyboard language switch didn’t expose the bug, the sphere button does give a drop down box, but it does not collapse. With Gboard it does happen, workaround is to tap the sphere button instead of a long press, to switch between languages.

I’ve tested with app Chrome Canary 159.0.8154.0, site codemirror.net and in the first edit field and tested ok, no bug.

I tried to look up the roll out to stable Webview, but could not find definitive information. Haystack kind of something…

Anyway, 1 Google dev said his teammate is “swamped”. I can only imagine… Yet it also reminds me of the (supply) chain of software dependencies. In this case an earlier bugfix at their side can suddenly create a unexplainable bug at our Obsidian side. Something to remember next time. System app Webview updates 6 weekly automatically I’ve read somewhere. In the app Total Commander you can look up the date for the last update, that could give someone a clue if something has changed (after that date). It is probably the only variable, apart from updates of Obsidian (which I do manually, instead of automatic updates in Google Playstore). Well, next to OS, device launcher (eg OneUI from Samsung) and keyboard app updates. And perhaps more?