[xkbcommon] How to distinguish left-shift and right-shift

Daniel Stone daniel at fooishbar.org
Fri Sep 27 14:35:45 PDT 2013


Hi,

On 27 September 2013 03:30, Ran Benita <ran234 at gmail.com> wrote:
> On Thu, Sep 26, 2013 at 06:46:02PM -0500, Jason Ekstrand wrote:
>> Looking at weston's input.c, I am not seeing any evidence that it sends any
>> key events due to an enter.  It does resend the modifiers, but that's
>> different.  It doesn't make sense to me that you would send the currently
>> depressed keys as an array and then send them again one-at-a-time.
>
> Hi Jason, thanks for looking.
>
> Right, for some reason I misread the loop in notify_keyboard_focus_in()
> to send key events. So there's no undefined behavior here; all the
> better. The enter + key events like I said initially should work well.

Indeed, if you want to test for those.  This was kind of the problem
our primary/secondary modifiers plan was supposed to fix: have a set
of 'first-class' modifiers such as Shift, Control, etc, which were
meaningful for key interpretation, as with today.  But then also add a
set of secondary modifiers which are strictly advisory and meaningless
on their own, e.g. LShift, RShift, etc.  But I haven't had the time to
implement this.

Cheers,
Daniel


More information about the wayland-devel mailing list