<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>71147</bug_id>
          
          <creation_ts>2003-12-23 22:18:14 +0000</creation_ts>
          <short_desc>Alt-shortcuts dont work with secondary layout</short_desc>
          <delta_ts>2024-09-14 17:06:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kdelibs</product>
          <component>qt</component>
          <version>unspecified</version>
          <rep_platform>Mandrake RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>UNMAINTAINED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Helge Hielscher">hhielscher</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          <cc>cfeck</cc>
    
    <cc>faure</cc>
    
    <cc>fredrik</cc>
    
    <cc>glad08</cc>
    
    <cc>kde-2011.08</cc>
    
    <cc>kirill.bogdanenko</cc>
    
    <cc>l.lunak</cc>
    
    <cc>wolfgang.brehm</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>86</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>188673</commentid>
    <comment_count>0</comment_count>
    <who name="Helge Hielscher">hhielscher</who>
    <bug_when>2003-12-23 22:18:14 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.1.94)
Installed from:    Mandrake RPMs
OS:          Linux

Reproducible: Always

Steps to Reproduce:
1. set your keyboard to ru/us (&quot;e.g. setxkbmap -model pc102 -layout ru,us
-variant ,basic&quot;)
2. try to use a shortcut (e.g. Alt+E) in kwrite or konqueror (locale:en_US)


Actual Results:  
only Ctrl-shortcuts (e.g. Ctrl-F) do work

Expected Results:  
shortcuts should work like in other applications (e.g. gedit)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188676</commentid>
    <comment_count>1</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2003-12-23 22:30:20 +0000</bug_when>
    <thetext>I can confirm this, but it would seem intentional. There might be a reason why there are no Alt+letter shortcuts on default KDE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188733</commentid>
    <comment_count>2</comment_count>
    <who name="Helge Hielscher">hhielscher</who>
    <bug_when>2003-12-24 05:33:26 +0000</bug_when>
    <thetext>Well, there are Alt-Shortcuts in KDE. E.g. Alt-E opens the edit menu.
This bug is about using a keyboard layout without latin keys but using latin locale and thus latin shortcuts, not about shortcuts in general.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>248735</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Cherepanov">sibskull</who>
    <bug_when>2004-07-14 17:53:26 +0000</bug_when>
    <thetext>I use &apos;ru&apos; layout and cannot activate menu item with cyrillic letter via accel key too. On other hand GTK+ 2.x applications work correct with cyrillic accelerators.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>514811</commentid>
    <comment_count>4</comment_count>
    <who name="Misha Aizatulin">avatar</who>
    <bug_when>2007-03-13 09:35:28 +0000</bug_when>
    <thetext>I have the same problem on KDE 3.5 with SuSE 10.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>514869</commentid>
    <comment_count>5</comment_count>
    <who name="Dotan Cohen">kde-2011.08</who>
    <bug_when>2007-03-13 14:46:04 +0000</bug_when>
    <thetext>On my Hebrew/English KDE installation the shortcuts work only in English. So CTRL-V pastes, but CTRL-ה (the letter ה on the same key as V) does not. However, in Gnome CTRL-ה pastes just like it should. It is a pain to switch to English each time I must perform a keyboard shortcut.

KDE 3.5.6 on FC6 on a Dell Inspiron lappy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>514875</commentid>
    <comment_count>6</comment_count>
    <who name="Misha Aizatulin">avatar</who>
    <bug_when>2007-03-13 15:27:10 +0000</bug_when>
    <thetext>Ctrl-shortcuts work for Russian in my KDE 3.5. In order for them to work you probably have to include latin as second layout, this is my config:
setxkbmap -model pc105 -layout us,ru -variant ,winkeys
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>694404</commentid>
    <comment_count>7</comment_count>
    <who name="Helge Hielscher">hhielscher</who>
    <bug_when>2009-01-05 11:11:28 +0000</bug_when>
    <thetext>In KDE4 Alt-Shortcuts work only on the first level. That means Alt-E open the Edit Menu, but any further key is ignored (cursor keys work though).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>746699</commentid>
    <comment_count>8</comment_count>
    <who name="Dotan Cohen">kde-2011.08</who>
    <bug_when>2009-04-24 15:29:03 +0000</bug_when>
    <thetext>In KDE 4.2 with the Israeli keyboard layout and the config &quot;setxkbmap -model pc104 -layout us,il -variant ,lyx&quot;, I can use keyboard shortcuts (while in Hebrew) for Ctrl-Z,X,C,V,A and so forth, but I cannot open Main Menu items. The main menu items are in Hebrew, for instance File is קובץ and the leading letter is underlined, however, Alt-ק does not open the menu item.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1031259</commentid>
    <comment_count>9</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2010-10-13 02:47:55 +0000</bug_when>
    <thetext>KDE-4.5 + Qt-4.6: I can reproduce the initial report: Alt+E doesn&apos;t work in russian layout. Comment #7 surprises me, then.

This looks very much like a Qt bug/issue, but anyway, let&apos;s have a look.

With a US layout, Alt+E opens the menu via QShortcutMap::tryShortcutEvent(), which calls (via nextState), the method QShortcutMap::find(). In the loop, entry.keyseq[0] is 0x8000045, entry.keyseq.toString(0) says &quot;Alt+E&quot;, and so does (*it).keyseq.toString(0) ==&gt; match.

With a RU layout, entry.keyseq.toString(0) says &quot;Alt+&quot; [probably a non-printable letter in my terminal], and the qLowerBound doesn&apos;t find anything. entry.keyseq[0] is 0x8000423. Well, from a technical point of view, it makes perfect sense, the pressed key was not &apos;E&apos;, but Cyrillic_u (keysym 0x6d5; ev-&gt;key() is 0x423). (Seen in `xev`, or in QKeyMapperPrivate::translateKeyEvent). The keycode is always 26, but that&apos;s too much of a physical information. When my wife switches my qwerty keyboard to french azerty, surely she wants Ctrl+A to be where the A is on a french layout, not where the Q is on a french layout... Anyway I guess the way other toolkits solve this is by only falling back to looking at the physical key if the layout-dependent keysym didn&apos;t match anything?
Or do they use the secondary keyboard layout as fallback, rather than hardcoding &quot;US&quot;? Please investigate the competition a little bit, so we can find out what to do exactly :-)
Check if Alt+A still works in &quot;ru,fr&quot; mode, where the key labelled &quot;A&quot; would only map to Cyrillic_ef or &apos;Q&apos;, if looking at the configured keyboard layouts. If it still works then &quot;US&quot; is hardcoded.

[Note to myself: we can get the keycode and virtual key even in QShortcutMap::find() because the QKeyEvent is in fact a QKeyEventEx with additional fields.]
[No clue how to ask for a lookup in another keyboard layout than the default one, though... XLookupString doesn&apos;t do that... CC&apos;ing some X experts...]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1031275</commentid>
    <comment_count>10</comment_count>
    <who name="Helge Hielscher">hhielscher</who>
    <bug_when>2010-10-13 03:41:17 +0000</bug_when>
    <thetext>Gnome/Gtk uses secondary layout. You can easily test this with dvorak layout where e(dit) is on d and f(ile) on y.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1031281</commentid>
    <comment_count>11</comment_count>
    <who name="Helge Hielscher">hhielscher</who>
    <bug_when>2010-10-13 03:51:43 +0000</bug_when>
    <thetext>Right now in kate neither ctrl nor alt shortcut work in Russian layout.
(Gnome Desktop with kate-4.5.68-1mdv2011.0)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1366802</commentid>
    <comment_count>12</comment_count>
    <who name="Wolfgang Brehm">wolfgang.brehm</who>
    <bug_when>2013-05-06 21:22:30 +0000</bug_when>
    <thetext>this may well be similar or even identical to BUG 274820 : https://bugs.kde.org/show_bug.cgi?id=274820</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1382948</commentid>
    <comment_count>13</comment_count>
    <who name="Andrew Gaydenko">a</who>
    <bug_when>2013-07-12 10:05:27 +0000</bug_when>
    <thetext>(In reply to comment #11)
&gt; Right now in kate neither ctrl nor alt shortcut work in Russian layout.
&gt; (Gnome Desktop with kate-4.5.68-1mdv2011.0)

Confirming - and not in kate only but KDE overall, say in konqueror also. Very annoying. In fact this is a reason I&apos;m evaluating another environments being on KDE &gt; 10 years. Can we rise importance by votes? Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1382960</commentid>
    <comment_count>14</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2013-07-12 11:17:38 +0000</bug_when>
    <thetext>Andrew, this bug is 10 years old. Do you get the Ctrl+ not working since 10 years? What you see is probably bug 320423.

Please find out what you did update to get the bug by trying previous versions. Relevant are Qt and anything with an X in it. It could also depend on input method extensions installed by the distributions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1382968</commentid>
    <comment_count>15</comment_count>
    <who name="Andrew Gaydenko">a</who>
    <bug_when>2013-07-12 11:43:16 +0000</bug_when>
    <thetext>(In reply to comment #14)
&gt; Andrew, this bug is 10 years old. Do you get the Ctrl+ not working since 10
&gt; years? What you see is probably bug 320423.

I have met the problem some days ago and at the moment can not determine that updated package causing an issue.

Thanks for the ref to recent similar but, I&apos;ll go there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2354232</commentid>
    <comment_count>16</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2024-09-14 17:06:38 +0000</bug_when>
    <thetext>Hi,

kdelibs (version 4 and earlier) is no longer maintained since a few years.

KDE Frameworks 5 or 6 might already have resolved this bug.

If not, please re-open against the matching framework if feasible or against the application that shows the issue.

We then can still dispatch it to the right Bugzilla product or component.

Greetings
Christoph Cullmann</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>