Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-08-15 23:32:08

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Sticky Keys not working for keyboard shortcut add

i have Sticky Keys enabled.  it does work.  it is a great feature for us one handed users (left hand is disabled but can be used in a limited way).

when i bring up Keyboard > Application Shortcuts then click Add and type in a command and click OK it now wants a key.  with Sticky Keys on i was hoping i could still use that.  but it is not working for this input.  if i press right Alt and release it assigns that command to right Alt even though i was pressing right Alt to modify the keypad + key.

somehow this program to handle keyboard or shortcut stuff is bypassing Sticky Keys.  anyone know how it does that?  i though X server handled this to make pressing a modifier combination pressed and released separately with a regular key to be modified be given to an app with all these modifiers held down while the regular key is pressed and released.  maybe when the raw input mode is used, X bypasses the Sticky Keys feature.

does anyone know how this is happening?

Offline

#2 2022-08-16 00:04:03

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Sticky Keys not working for keyboard shortcut add

It might  be worth creating a bug report for this.

As a workaround, you can fire up xfce4-settings-editor, click on the xfce4-keyboard-shortcuts channel, and then in the right window click on "Add". Here you would enter:
- Property = /commands/custom/YOUR_KEYBOARD_SHORTCUT
- Type = String
- Value = the command you want to run.

So, as an example, to set an Alt+F5 shortcut to run mousepad:
- Property = /commands/custom/<Alt>F5
- Type = String
- Value = mousepad

It will take effect immediately.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2022-08-16 01:03:35

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: Sticky Keys not working for keyboard shortcut add

i don't necessarily think it's a bug.  it could be X's intended behavior.  i'm only now starting to get into GUI programming (a reason i have been looking into Wayland as the API is different) and have, at most, popped up some windows.

that's why i think Xfce should create it's own API and have 2 libraries, one for X, other for Wayland, so less code needs to be loaded (every Xfce app would then share which is loaded by mapping the same one).

some day i need to grab Xfce source code and study what it does.  i do programming in C and Python.  if i end up coding any Xfce things, i will try to do it in Python if it doesn't really need C.  might be smaller if enough things are made that way.

Offline

#4 2022-08-16 01:16:10

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: Sticky Keys not working for keyboard shortcut add

i typically edit a copy of ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml and save it in ~/.replace/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml and reboot.  one of my custom bootup scripts scans all users for /home/*/.replace and replaces (or adds) these files to their home tree so the users login with the files already in place and are not changing them while already logged in.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.005 seconds, 7 queries executed - Memory usage: 536.05 KiB (Peak: 538.55 KiB) ]