Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-42423

iso_level3_shift key prints khmer characters

    XMLWordPrintable

Details

    Description

      I have assigned the right alt key to be iso_level3_shift and created a custom layout via xkb. Here is my xkb file:
      /usr/share/X11/xkb/symbols/en-custom-colemak:

      default  partial alphanumeric_keys modifier_keys
      
      xkb_symbols "basic" {
      
          name[Group1]= "English (Custom)";
      
          key.type = "THREE_LEVEL";
      ...
          key <AB06> {	[	  k,	K,		BackSpace	]};
          key <AB07> {	[	  m,	M,		Delete		]};
      ...
          
          key <RALT> {
      	type[Group1]="ONE_LEVEL",
      	symbols[Group1] = [ ISO_Level3_Shift ]
          };
      

      Using various key symbols generated by xkb iso_level3_shift works in qt creator 3.2.2 based on qt 5.3.2, except when assigning hotkeys in the options->environment->keyboard dialog.
      Pressing and releasing the RALT key alone prints khemer character ោ and some other character (<?>).
      Similarily, pressing RALT+i (supposed to be the up arrow) prings the same characters and the Up arrow after them.

      The iso_level3_shift is a modifier key, it should not print anything when pressed alone.
      Here is the xev output (pressing and releasing RALT):

      KeyPress event, serial 37, synthetic NO, window 0x3000001,
          root 0x9b, subw 0x0, time 3889973, (1118,335), root:(1120,440),
          state 0x10, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
          XKeysymToKeycode returns keycode: 92
          XLookupString gives 0 bytes: 
          XmbLookupString gives 0 bytes: 
          XFilterEvent returns: False
      
      KeyRelease event, serial 37, synthetic NO, window 0x3000001,
          root 0x9b, subw 0x0, time 3890069, (1118,335), root:(1120,440),
          state 0x90, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
          XKeysymToKeycode returns keycode: 92
          XLookupString gives 0 bytes: 
          XFilterEvent returns: False
      }
      

      Assigning iso_level3_shift to another key (right control, for example) does not help. The same output is produced when right control is pressed.

      Screenshot is attached.

      Maybe, it is related to this issue.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              liaqi Liang Qi
              ionivan Ivan Nezhdanov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes