hmlendea/gfn-electron

[BUG] Esc key not working outside the app

Closed this issue · 3 comments

Describe the bug

When the app is launched the Esc key is not usable outside it which is frustrating especially since I tend to use Neovim for code editing when looking for the next available rig and I can't get to the NORMAL mode
if there's a way to set an "only when on focused" key, please consider using it instead of the current implementation .

To Reproduce

  1. launch the app
  2. switch to another app
  3. Esc key not working

Screenshots

No response

Operating System

archlinux

Desktop Environment

bspwm

Display Server

x11

Installation method

flatpak

Version

2.1.0

Is this a fresh install of the app or an update from a past version?

fresh install

Did this issue appear right away upon installation/updating, or spontaneously?

right after installation

Additional context

No response

[UPDATE] all the ones defined with globalShortcut.register() are global and have this issue
I found this npm package called electron-localshortcut that works exactly like globalShortcut and without using a Menu.
I will be sending a pr soon after testing

Merged #242