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

Directional key symbols generated by xkb level 3 shift don't work in single-line text field

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 4.7.4, 5.0.0
    • None
    • KDE 4.7.2, Opensuse 12.1
    • Change-Id: Id91cd4999777f7085068e9dba5cb22b40653e23d

    Description

      I assigned via xkb some level 3 shift key as: h -> left, j -> down, k -> up, l -> right. In dialogs where user is to enter some text in a single line text field, eg. "rename file" or "create new directory" dialog in KDE dolphin, or the filename field in "open file" dialog window, these direction keys doesn't work. Multi-line text fields and any other direction key operations work no problem. This only occurs after I switched to use xkb keymap to assign level 3 shift; before this I used xmodmap and this doesn't occur (but xmodmap is supposed to be obsolete and has its own problems).

      How it occur with xkb:
      In opensuse 12.1, file /usr/share/X11/xkb/symbols/us :

      xkb_symbols "basic" {
      ...
        key <AC06> {	[	  h,	H,	Left	]	};
        key <AC07> {	[	  j,	J,	Down	]	};
        key <AC08> {	[	  k,	K,	Up	]	};
        key <AC09> {	[	  l,	L,	Right	]	};
      ...
        // <CAPS> as level 3 switch, see:
        // include "level3(caps_switch)"
        key <CAPS> {
          type[Group1]="ONE_LEVEL",
          symbols[Group1] = [ ISO_Level3_Shift ]
        };
        modifier_map Mod5   { ISO_Level3_Shift };
      }
      

      With xmodmap it worked no problem:

      keysym h = h H Left
      keysym j = j J Down
      keysym k = k K Up
      keysym l = l L Right
      ...
      keysym Caps_Lock = Mode_switch
      remove lock = Caps_Lock
      

      Attachments

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

        Activity

          People

            paeglis Gatis Paeglis
            bamoqi Bamoqi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes