Skip to content

Wrong keysym is reported #273

Closed
Closed

Description

@mad-s

Most keys generate different keysyms depending on modifier state, the most prominent example being the shift key. Winit only does these transformations for text input, but some keyboard layouts like Neo put non-character keys like arrow keys on higher layers. Only the unmodified key gets through and the application is sent a KeyboardInput event with virtual keycodes of L,I,A,E in the case of Neo, but no RecievedCharacter event. Correct behaviour would be to send KeyboardInputs for Up, Left, Down, Right keycodes.

Activity

  1. chetgurevitch commented on Oct 7, 2017

    @chetgurevitch
    Contributor

    ref alacritty/alacritty#818

    #274 broke modifiers for tab. The application receives an unmodified tab and then a seperate keyboardinput with virtual_keycode: None and modifier shift. RecievedCharacter events are identical.

  2. mad-s commented on Oct 7, 2017

    @mad-s
    ContributorAuthor

    That is probably due to the keyboard layout generating ISO_Left_Tab. You can fix it temporarily (until #308 is merged) by adjusting your keyboard layout, for example in /usr/share/X11/xkb/symbols/pc change the line

    key  <TAB> {	[ Tab,	ISO_Left_Tab	]	};
    

    to

    key  <TAB> {	[ Tab	]	};
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions