hyprwm / Hypr

Hypr is a tiling window manager written in modern C++.
BSD 3-Clause "New" or "Revised" License
1.06k stars 32 forks source link

[Bug] Using keycombos inputs text into active window #61

Closed ExperiBass closed 2 years ago

ExperiBass commented 2 years ago

Please describe the bug When using a key combo such as SUPER+V, text is input into the active window (if it allows for text input), but only if said keycombo doesn't switch workspaces.

Steps to reproduce:

  1. Open a notepad or terminal.
  2. Hit a key combo that doesn't change workspaces. I'm using SUPER+V.
  3. See text.

Expected behavior No text is input.

Screenshots My screen recorder has decided not to work.

Log: Please attach a log. (paste it into pastebin and paste here the url) The log can be found in a temp file located in /tmp/hypr/hypr.log. Too large to be put into pastebin

vaxerski commented 2 years ago

Should not happen if the said keycombo is a keybind. If it is not, then yes, that's how keyboards work.

Will investigate once I get back home.

Also yeah I have to change that line saying to paste into pastebin, just attach the log file lol.

ExperiBass commented 2 years ago

said keycombo is a keybind, it alternates between horizontal and vertical stacking.

vaxerski commented 2 years ago

oh that's weird then, I'll see when I get back home

vaxerski commented 2 years ago

some possible keybind issues have been fixed in 1667180ac3554cdeaf00ac2cd0f3ad37e64bce30, check if this still occurs

devraza commented 2 years ago

I've been having the same issue, but I found a workaround. I changed the keybind from:

bind=SUPER,Q,exec,kitty

to:

bind=ALT,Q,exec,kitty

That somehow managed to fix the issue with launching kitty. (In short, using SUPER in keybindings doesn't work)

devraza commented 2 years ago

Nevermind, I somehow fixed the issue (probably by killing sxhkd)

vaxerski commented 2 years ago

killing a separate keybind daemon should probably be a good idea.

ExperiBass commented 2 years ago

Ok so good news and bad news

Good news: it works, I can use supershift now :D

Bad news: It also seems to have blocked keyboard input? I can use keybinding just fine, but I can't actually type anything. I also can't switch workspaces or move windows to a different workspace.

vaxerski commented 2 years ago

make sure you didn't toggle scroll lock, or num lock or other of those

vaxerski commented 2 years ago

workspaces or move windows to a different workspace.

yes I am an idiot fixed that one

ExperiBass commented 2 years ago

make sure you didn't toggle scroll lock, or num lock or other of those

I'm 90% sure they're off, I don't have those keys

vaxerski commented 2 years ago

then come once again, what's the issue right now? You can't type in a window, e.g. a terminal?

ExperiBass commented 2 years ago

It looks like your workspace change fixed whatever was causing it, i can type just fine now. Original issue wasn't fixed though, SUPER+V still inputs v into vscode.

vaxerski commented 2 years ago

output of xmodmap -pk | grep "V"?

ExperiBass commented 2 years ago

55 0x0076 (v) 0x0056 (V) 0x0076 (v) 0x0056 (V)

vaxerski commented 2 years ago

is 0x56 the correct keysym when you try xev? if not, your keyboard layout is haunted and you have to use the keysyms instead of letters.

ExperiBass commented 2 years ago

keysym is 0x76, time to call the ghostbusters

vaxerski commented 2 years ago

use the keysym manually then. Remember to convert the hex to dec when inputting in the config.

ExperiBass commented 2 years ago

yeah that works, thanks :D