Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rofi 1.4.2 doesn't capture ←, ↑, →, ↓ binding to keys to work in combination with Mode_switch (it works in 1.3.1) #744

Closed
marcellmars opened this issue Dec 25, 2017 · 4 comments
Assignees

Comments

@marcellmars
Copy link

Rofi version

1.4.2.

Configuration

https://gist.github.com/marcellmars/348c1af5b7d9c3fa76ae4e4e172c1995

Launch Command

rofi -modi run,drun -show run -font "Terminus (TTF) 24"

but it doesn't really matter...

Steps to reproduce

  • run rofi 1.4.2 with keyboard layout where Mode_switch brings ←, ↑, →, ↓, enter, backspace and delete to some of the keys

What behaviour you see

  • it doesn't capture ←, ↑, →, ↓, enter, backspace and delete

What behaviour you expect to see

  • it should work as it works with 1.3.1-2 (debian) and any other app i run on my system

Probably better explanation

i have ←, ↑, →, ↓, enter, backspace and delete binded to Mode_switch in combination with several other keys. it stopped working in rofi with the latest upgrade (1.4.2). my guess this could be the commit which is related to that: 7f7da66

in my keyboard layout file in /usr/share/X11/xkb/symbols/my_keyboard i have things like:

key <LCTL> {[ Mode_switch, Multi_Key]};

which would then let me do:

    key <AC06> { [ h, H], [Left,  any]};
    key <AC07> {[ u, U], [Down, any]};
    key <AC08> {[i, I], [Up, any]};
    key <AC09> {[o, O], [Right, any]};
    key <SPCE> {[space, space], [Return, any]};
    key <CAPS> {[Escape]};
    key <LWIN> {[Control_L]};

that config could be run by:

setxkbmap my_keyboard -option

rofi runs as this:

rofi -modi run,drun -show run -font "Terminus (TTF) 24"

the theme is configured (depending on the rofi version) in ~/.config/rofi/config as:

rofi.theme: /usr/share//rofi/themes//solarized_alternate.rasi
#include "/usr/share//rofi/themes//solarized_alternate.theme"

it worked fine before i upgraded to 1.4.2 and it works fine now after downgraded to 1.3.1
i didn't notice any particular application would have problems with my_keyboard.

my guess is that any keyboard which would have Mode_switch assigned to some key and then another one having Down set together with Mode_switch to do the should be minimal enough setup to test. these are the related lines from my keyboard configuration:

    key <LCTL> {[ Mode_switch, Multi_Key]};
    key <AC07> {[ u, U], [Down, any]};
@sardemff7
Copy link
Collaborator

AFAICT, duplicate of #611, with a fix pending (because the fix is after a new feature in a submodule, so we cannot bring it without potentially break the mouse stuff).

@sardemff7
Copy link
Collaborator

(See wip/mouse-rework for a fix.)

@marcellmars
Copy link
Author

compiling it from wip/mouse-rework branch works!

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants