3

While using electron based apps, like slack or gpmdp, when I type something in input field and switch keyboard layout (I use Alt+Shift), pushing Alt causes focus to move onto menubar selection.

So typing anything containing 2 languages is infuriating.

How to disable focus loss?

13DaGGeR
  • 147
  • 1
  • 10

1 Answers1

0

I faced with this issue in Zulip v5.4.2 and Postman v7.30.1.

My workaround of this Electron's bug:

On Linux

  1. Close Zulip
  2. Find the Zulip's resource folder. For example: cd /opt/Zulip/resources
  3. Make backup of app.asar file cp app.asar app.asar.bak
  4. Unpack the app.asar archive npx asar extract app.asar app-unpacked
  5. Find the menu.js file and edit it, add the & symbol into the menu label nano ./app-unpacked/app/main/menu.js
  6. Change
  • label: t.__('File') to label: t.__('&File')
  • label: t.__('Edit') to label: t.__('&Edit')
  • And so on for each top menu items
  1. Then pack the app-unpacked folder back into asap archive mv app.asar app_old.asar npx asar pack app-unpacked app.asar
  2. Run Zulip and check Alt+Shift

On Windows

You can use the 7zip archiver with the asap plugin

Sergey Nemchinov
  • 1,348
  • 15
  • 21