GithubHelp home page GithubHelp logo

Comments (9)

randm-ch avatar randm-ch commented on July 17, 2024 1

I'm on Linux. I have tested this with both Arch and Ubuntu. It has something to do with the keyboard itself because the problem only occurs when I use my external keyboard, but not the one built in the laptop. Very strange but this indeed doesn't seem to be an issue with the extension. Closed. Thank you!

from google-music-hotkeys.

randm-ch avatar randm-ch commented on July 17, 2024 1

@lidel I'm back on Arch and the issue persists. So either it's GNOME related or I'm just really unlucky ;) But I think as long as noone else has the same issue it's not worth investigating and I can live with it. Thanks for your time!

from google-music-hotkeys.

lidel avatar lidel commented on July 17, 2024

I don't think this is related to extension itself.

What operating system are you using?
It sounds like either OS or some other app running on it is hijacking ^ key, or your hardware keyboard has function keys that get triggered somehow.

from google-music-hotkeys.

randm-ch avatar randm-ch commented on July 17, 2024

@lidel I just tested this again on another laptop (Ubuntu with GNOME) with no external keyboard. I have set:

  • MediaPlayPause -> Toggle Playback
  • MediaPrevTrack -> Previous Song
  • MediaNextTrack -> Next Song

^ toggles Playback (when focus is not in an input field) on this machine, and so do MediaPrevTrack and MediaNextTrack (they don't skip to the next/previous song). So it's not just the external keyboard.

Any idea what I might be doing wrong? I have unassigned the media keys in the Keyboard settings (otherwise it doesn't work at all). No other media player is runing, or even installed. I have disabled all other FF addons. FF version is 60.0.2. Thanks!

from google-music-hotkeys.

lidel avatar lidel commented on July 17, 2024

@randm-ch tough cookie! 🤔

Are you running the latest version of extension (1.6.0) and unchecked modifiers like on screenshot below?

If so, I guess we need to do step-by-step elimination.

First, let's make sure X11 is getting proper keyboard events:

  1. install and start xev -event keyboard tool in terminal
  2. move mouse/focus to its white window
  3. press ^
  4. copy console output and paste here
  5. repeat for MediaPrevTrack and MediaNextTrack

On my machine pressing and releasing ^ produces 2 events:

KeyPress event, serial 28, synthetic NO, window 0x2800001,
    root 0xe3, subw 0x0, time 625073729, (460,699), root:(2757,702),
    state 0x1, keycode 15 (keysym 0x5e, asciicircum), same_screen YES,
    XLookupString gives 1 bytes: (5e) "^"
    XmbLookupString gives 1 bytes: (5e) "^"
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x2800001,
    root 0xe3, subw 0x0, time 625073879, (460,699), root:(2757,702),
    state 0x1, keycode 15 (keysym 0x5e, asciicircum), same_screen YES,
    XLookupString gives 1 bytes: (5e) "^"
    XFilterEvent returns: False

MediaPrevTrack and MediaNextTrack should produce similar events, but with key names XF86AudioPrev and XF86AudioNext.

from google-music-hotkeys.

randm-ch avatar randm-ch commented on July 17, 2024

^

KeyPress event, serial 34, synthetic NO, window 0x3e00001,
    root 0x1a8, subw 0x0, time 90604340, (98,95), root:(188,308),
    state 0x10, keycode 21 (keysym 0xfe52, dead_circumflex), same_screen YES,
    XLookupString gives 1 bytes: (5e) "^"
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: True

KeyRelease event, serial 37, synthetic NO, window 0x3e00001,
    root 0x1a8, subw 0x0, time 90604660, (98,95), root:(188,308),
    state 0x10, keycode 21 (keysym 0xfe52, dead_circumflex), same_screen YES,
    XLookupString gives 1 bytes: (5e) "^"
    XFilterEvent returns: False

MediaPlayPause

KeyPress event, serial 37, synthetic NO, window 0x3e00001,
    root 0x1a8, subw 0x0, time 90619108, (2567,1133), root:(2657,1346),
    state 0x10, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: True

KeyRelease event, serial 38, synthetic NO, window 0x3e00001,
    root 0x1a8, subw 0x0, time 90619196, (2567,1133), root:(2657,1346),
    state 0x10, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

MediaPrevTrack

KeyPress event, serial 38, synthetic NO, window 0x3e00001,
    root 0x1a8, subw 0x0, time 90620644, (2567,1133), root:(2657,1346),
    state 0x10, keycode 173 (keysym 0x1008ff16, XF86AudioPrev), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 38, synthetic NO, window 0x3e00001,
    root 0x1a8, subw 0x0, time 90620772, (2567,1133), root:(2657,1346),
    state 0x10, keycode 173 (keysym 0x1008ff16, XF86AudioPrev), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

MediaNextTrack

KeyPress event, serial 38, synthetic NO, window 0x3e00001,
    root 0x1a8, subw 0x0, time 90621756, (2567,1133), root:(2657,1346),
    state 0x10, keycode 171 (keysym 0x1008ff17, XF86AudioNext), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 38, synthetic NO, window 0x3e00001,
    root 0x1a8, subw 0x0, time 90621868, (2567,1133), root:(2657,1346),
    state 0x10, keycode 171 (keysym 0x1008ff17, XF86AudioNext), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Looks good, right? Extension version is 1.6.0. I'm running a GNOME 3.28.1 X11 session.

from google-music-hotkeys.

lidel avatar lidel commented on July 17, 2024

Ok, this part looks as expected, which means something is hijacking or miss-representing ^ event after it is received by X11.

Do you experience the same bug when you change keyboard layout to English (US) ?

from google-music-hotkeys.

randm-ch avatar randm-ch commented on July 17, 2024

@lidel ^ (= with English (US) layout) doesn't trigger play/pause, but MediaPrevTrack and MediaNextTrack still do...

from google-music-hotkeys.

lidel avatar lidel commented on July 17, 2024

Ok, sounds like something specific to Ubuntu/DE. Sadly I don't have Ubuntu on my hands,
but perhaps below helps?

from google-music-hotkeys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.