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

Shift modifier isn't being applied #39

Open
MungFuSensei opened this issue Mar 25, 2022 · 3 comments
Open

Shift modifier isn't being applied #39

MungFuSensei opened this issue Mar 25, 2022 · 3 comments

Comments

@MungFuSensei
Copy link

wtype -M Shift -k o
wtype -M Shift o
wtype -M Shift -k o -m Shift
wtype -M shift -k o
wtype -M Shift -d 100 -k o
wtype -M "Shift" -k o
wtype -M "shift" -k o
wtype -M 'shift' -k o

And more combinations thereof. Absolutely none of it will return "O" (or whatever other key).

Tested on postmarketOS/edge/sway in foot and qutebrowser. Tested on void (non-musl)/dwl in foot.

@daxter767676
Copy link

daxter767676 commented Jul 6, 2022

Try wtype O

wtype -M ctrl -M shift -k tab -m shift -m ctrl and
wtype -M ctrl -M shift t -m shift -m ctrl
work as expected, but it seems that wtype -M shift o -m shift and other permutations of shift + letter just output a lowercase letter.

@galister
Copy link

galister commented Feb 21, 2023

@atx I had the same issue on my project and the eventual solution was to:

  1. bind wl_seat
  2. get_keyboard on wl_seat
  3. get the keymap from wl_keyboard
  4. upload that to the virtual keyboard

You can pass the fd/size as is from the wl_keyboard to the virtual one.

https://github.com/galister/X11Overlay/blob/6290df5679e8f504bb039b0959d2e29f54f6909e/Desktop/Wayland/WaylandInterface.cs#L46-L49

Alternatively, just include the proper xkb_types and xkb_compat section in the keymap. You can generate one from your active one under xwayland:
setxkbmap -print | grep -v WARNING | xkbcli compile-keymap --from-xkb

@jonhoo
Copy link

jonhoo commented Feb 10, 2024

Interestingly the same can be seen with inherently uppercase keysyms. For example, wtype -k Aring outputs å, not Å.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants