You are not logged in.

#1 2020-07-22 02:22:10

aldeano
Member
Registered: 2009-09-04
Posts: 30

Menu key doesn't work in QT apps

I got a Lenovo laptop in which the key combination of shift+f10 displays the contextual menu (right click menu). It works in every non-qt app (LibreOffice, Firefox, GIMP, etc...) but It doesn't in qt apps like Plasma, Dolphin, VLC, etc...

Activating the option Keyboards > Advanced > Caps Lock Behavior > Make Caps Lock an additional Menu Key works inside QT and non QT apps, but I really want to use that key for what is intended.

Using Plasma 5.19.3-1 and kernel 5.7.9-arch1-1in arch up to date.

Offline

#2 2020-07-24 06:56:21

jlindgren
Member
Registered: 2011-02-27
Posts: 260

Re: Menu key doesn't work in QT apps

I don't think it has anything to do with your (new?) laptop. I think this is just a difference between GTK+ and Qt.

Offline

#3 2020-07-24 20:28:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: Menu key doesn't work in QT apps

Worksforme but I have dedicated menu buttons on my laptop. What's the actual key that gets generated? Maybe check/post from a run in xev.

Offline

#4 2020-08-04 01:02:04

aldeano
Member
Registered: 2009-09-04
Posts: 30

Re: Menu key doesn't work in QT apps

If I press shitf+f10 xev shows two entries, one for each button

KeyRelease event, serial 40, synthetic NO, window 0x8e00001,
    root 0x6aa, subw 0x0, time 30682796, (1509,-418), root:(1509,28),
    state 0x11, keycode 76 (keysym 0xffc7, F10), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x8e00001,
    root 0x6aa, subw 0x0, time 30682841, (1509,-418), root:(1509,28),
    state 0x11, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

There isn't a code for the combination.

And pressing caps lock I get

KeyRelease event, serial 40, synthetic NO, window 0x3000001,
    root 0x6aa, subw 0x0, time 31867100, (169,-15), root:(169,431),
    state 0x10, keycode 66 (keysym 0xff67, Menu), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Offline

#5 2020-08-04 06:23:34

seth
Member
Registered: 2012-09-03
Posts: 50,989

Re: Menu key doesn't work in QT apps

How exactly does "key combination of shift+f10 displays the contextual menu"?
Is it because you somehow somewhere set up a shortcut for this or because the keymap has "Menu" on the 2nd level of keycode 76 ("F10")?

Offline

#6 2020-08-04 22:14:29

aldeano
Member
Registered: 2009-09-04
Posts: 30

Re: Menu key doesn't work in QT apps

No, I didn't set up a shortcut, It comes like that with the hardware. Works like that in other OS according to this.

Offline

#7 2020-08-05 06:53:20

seth
Member
Registered: 2012-09-03
Posts: 50,989

Re: Menu key doesn't work in QT apps

What if you press "Fn+Shift+F10"? (reverse Fn lock)

Offline

#8 2020-08-06 12:57:56

jlindgren
Member
Registered: 2011-02-27
Posts: 260

Re: Menu key doesn't work in QT apps

seth wrote:

How exactly does "key combination of shift+f10 displays the contextual menu"?
Is it because you somehow somewhere set up a shortcut for this or because the keymap has "Menu" on the 2nd level of keycode 76 ("F10")?

Handling of Shift+F10 in Linux is usually toolkit- or application-specific. A similar question was already discussed here: https://unix.stackexchange.com/question … plications.

Offline

#9 2020-08-06 14:49:06

seth
Member
Registered: 2012-09-03
Posts: 50,989

Re: Menu key doesn't work in QT apps

There's a difference between a "common shortcut" and the Menu key on the second layer of F10, though https://images-na.ssl-images-amazon.com … L1267_.jpg doesn't look like that's actually the case on the particular layout.

Offline

Board footer

Powered by FluxBB