Fix caps:escape_shifted_capslock behavior#9971
Fix caps:escape_shifted_capslock behavior#9971zoriya wants to merge 1 commit intokovidgoyal:masterfrom
caps:escape_shifted_capslock behavior#9971Conversation
|
Your patch only changes the pres/repeat behavior, what about release behavior? Indeed, the whole concept of mapping shift+capslock to esc is a bit bonkers. When is an esc release event generated? wen you release capslock? or when you release shift? What happens if you release caps lock first or shift first? What happens if you release capslock but not shit and then press some other key like A? Also I dont understand the logic, from what I can tell you want xkb_sym to not be the clean_sym when sym and clean_sym are different and sym is a functional key? Why? Wouldnt you need to check if clean_sym is a functional key as well? And what about if you press ctrl+shift+capslock? What's supposed to happen then? |
An esc press event is triggered on capslocks without the shift, similarly the release event is triggered if capslocks is released while shift is pressed. Shift is registred as a normal modifier, if you press I did miss the release event mapping, just pushed a fix.
My reasoning was that if the modified value was a function we want to apply that instead of the clean value ; apart with things like |
Fix #9861
Handle cases where a shifted key produces a different fuction, like the
caps:escape_shifted_capslockbehavior of the previous issue