• Re: Restoring fvwm key bindings

    From John Hasler@21:1/5 to All on Fri May 23 14:10:01 2025
    If it helps any I have

    # Now some keyboard shortcuts.

    # Arrow Keys
    # press arrow + control anywhere, and scroll by 1 page
    Key Left A C Scroll -100 0
    Key Right A C Scroll +100 +0
    Key Up A C Scroll +0 -100
    Key Down A C Scroll +0 +100

    and I don't lose these bindings (or any others) when I start Firefox.

    fvwm 2.7.0 compiled on Jul 25 2024 at 17:07:17 with support for:
    ReadLine, RPlay, Stroke, XPM, SVG, Shape, XShm, SM, Bidi text, Xinerama, XRender, XCursor, XFT, NLS

    Mozilla Firefox 134.0.2-3



    --
    John Hasler john@sugarbit.com Elmwood, WI USA

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Detlef Vollmann on Fri May 23 14:00:01 2025
    On Fri, May 23, 2025 at 13:33:58 +0200, Detlef Vollmann wrote:
    Key Left A SM Scroll -100 +0
    Key Right A SM Scroll +100 +0
    Key Up A SM Scroll +0 -100
    Key Down A SM Scroll +0 +100

    I don't know about these *specific* key combinations.

    Now if I start firefox, fvwm looses these bindings (I have no
    idea what function they have in firefox).
    Even when I close firefox fvwm doesn't recognize them anymore :-(

    Some experimenting suggests that fvwm actually looses all key bindings.

    That makes very little sense, and doesn't match my own experience.
    I have the following bindings:

    # audio keys
    Key XF86AudioPlay A A Exec nyxmms2 toggle
    Key XF86AudioStop A A Exec nyxmms2 stop
    Key XF86AudioPrev A A Exec nyxmms2 prev
    Key XF86AudioNext A A Exec nyxmms2 next
    # for keyboards without those keys:
    Key P A SC Exec nyxmms2 toggle
    Key S A SC Exec nyxmms2 stop
    Key (Google-chrome) B A SC --
    Key (*google-chrome) B A SC --
    Key B A SC Exec nyxmms2 prev
    Key N A SC Exec nyxmms2 next
    # and with NumLock pressed...:
    Key P A SC2 Exec nyxmms2 toggle
    Key S A SC2 Exec nyxmms2 stop
    Key (Google-chrome) B A SC2 --
    Key (*google-chrome) B A SC2 --
    Key B A SC2 Exec nyxmms2 prev
    Key N A SC2 Exec nyxmms2 next

    I have firefox-esr running, and the bindings continue to work as
    expected. How certain are you that it's Firefox causing the issue
    and not something totally unrelated? E.g. having NumLock on?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Detlef Vollmann@21:1/5 to All on Fri May 23 13:40:01 2025
    Hello,

    maybe somebody here knows about fvwm2.

    My .fvwm/config has (among others) the following lines:

    Key Left A SM Scroll -100 +0
    Key Right A SM Scroll +100 +0
    Key Up A SM Scroll +0 -100
    Key Down A SM Scroll +0 +100

    These use the respective key combinations to switch between
    virtual desktops. So far so good.

    Now if I start firefox, fvwm looses these bindings (I have no
    idea what function they have in firefox).
    Even when I close firefox fvwm doesn't recognize them anymore :-(

    Something like:
    AddToFunc RestartFunction
    + "I" Key Left A SM Scroll -100 +0

    doesn't seem to help.

    Some experimenting suggests that fvwm actually looses all key bindings.

    Does anybody know how to reactivate the key bindings?

    Detlef

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Detlef Vollmann@21:1/5 to Greg Wooledge on Fri May 23 15:10:01 2025
    On 5/23/25 13:53, Greg Wooledge wrote:

    Now if I start firefox, fvwm looses these bindings (I have no
    idea what function they have in firefox).
    Even when I close firefox fvwm doesn't recognize them anymore :-(

    Some experimenting suggests that fvwm actually looses all key bindings.

    That makes very little sense, and doesn't match my own experience.

    I know, but it still happens :-(

    I have firefox-esr running, and the bindings continue to work as
    expected. How certain are you that it's Firefox causing the issue
    and not something totally unrelated? E.g. having NumLock on?

    I don't use -esr, so it's firefox 138.0.4.
    And I have to correct myself: it's not starting firefox that causes
    the loss of the key bindings, but a specific web site.
    It's my internet banking site, and it only happens after I login,
    so I can't give you a a test page.

    Probably the web page uses some JavaScript mechanism to claim the
    keys from the window manager and doesn't give it back, or something
    similar.

    Does anybody know of a way to tell firefox not to allow such behaviour
    of a web site?

    Detlef

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Detlef Vollmann on Fri May 23 16:30:01 2025
    On Fri, May 23, 2025 at 15:02:56 +0200, Detlef Vollmann wrote:
    And I have to correct myself: it's not starting firefox that causes
    the loss of the key bindings, but a specific web site.
    It's my internet banking site, and it only happens after I login,
    so I can't give you a a test page.

    Probably the web page uses some JavaScript mechanism to claim the
    keys from the window manager and doesn't give it back, or something
    similar.

    Does it turn NumLock on?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Detlef Vollmann@21:1/5 to Greg Wooledge on Fri May 23 17:20:01 2025
    On 5/23/25 16:29, Greg Wooledge wrote:
    On Fri, May 23, 2025 at 15:02:56 +0200, Detlef Vollmann wrote:
    And I have to correct myself: it's not starting firefox that causes
    the loss of the key bindings, but a specific web site.
    It's my internet banking site, and it only happens after I login,
    so I can't give you a a test page.

    Probably the web page uses some JavaScript mechanism to claim the
    keys from the window manager and doesn't give it back, or something
    similar.

    Does it turn NumLock on?


    No.
    But I do. To enter the login code.
    And that is it. PEBCAK :-(

    Adding:
    IgnoreModifiers L2

    to my /fvwm/config solves the problem.

    Thanks a lot,
    Detlef

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)