<?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>346806</bug_id>
          
          <creation_ts>2015-04-27 17:40:08 +0000</creation_ts>
          <short_desc>KDE not honouring keypad modifier in shortcuts</short_desc>
          <delta_ts>2021-03-09 05:53:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-kconfig</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=357133</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Luis Lezcano Airaldi">luislezcair</reporter>
          <assigned_to name="Matthew Dawson">matthew</assigned_to>
          <cc>AndyKluger</cc>
    
    <cc>bugs.kde.pistos</cc>
    
    <cc>kdebugs</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>rdieter</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1514101</commentid>
    <comment_count>0</comment_count>
    <who name="Luis Lezcano Airaldi">luislezcair</who>
    <bug_when>2015-04-27 17:40:08 +0000</bug_when>
    <thetext>I&apos;m not sure if this is the right component where to post this bug.

I was experiencing this issue in Kate https://bugs.kde.org/show_bug.cgi?id=345504 (Keypad keys not working) and I was able to track down what I think is the problem.

I think some components (the shortcuts configuration dialog in systemsettings, Kate and other apps) are ignoring the Keypad modifier from Qt (Qt::KeypadModifier).

To test this I downloaded the KTextEditor source code and replaced the default shortcut for PageUp with &quot;Qt::KeypadModifier + Qt::Key_PageUp&quot; in src/view/kateview.cpp, like this:

a = ac-&gt;addAction(QLatin1String(&quot;scroll_page_up&quot;));                         
a-&gt;setText(i18n(&quot;Scroll Page Up&quot;));                                         
ac-&gt;setDefaultShortcut(a, QKeySequence(Qt::KeypadModifier + Qt::Key_PageUp));                                                                                                          
connect(a, SIGNAL(triggered(bool)), SLOT(pageUp()));                        
m_editActions &lt;&lt; a;

Now it works as expected. Also, in the shortcut configuration dialog it shows up as &quot;Num + PageUp&quot;, instead of just &quot;PageUp&quot; as before.
Of course, the same applies for the other keypad keys: Home, End, Insert, Del and PageDown.

Another thing: I am also having this bug https://bugs.kde.org/show_bug.cgi?id=343665, but I can&apos;t tell if it is related or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514104</commentid>
    <comment_count>1</comment_count>
    <who name="Luis Lezcano Airaldi">luislezcair</who>
    <bug_when>2015-04-27 17:52:21 +0000</bug_when>
    <thetext>I forgot to mention I&apos;m running ArchLinux with KDE Frameworks 5.9.0 and Qt 5.4.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514139</commentid>
    <comment_count>2</comment_count>
    <who name="Luis Lezcano Airaldi">luislezcair</who>
    <bug_when>2015-04-27 19:24:21 +0000</bug_when>
    <thetext>No need to modify source code. As a temporary workaround I manually sanitized ~/.config/kdeglobals (which is getting malformed because of Bug #343665) and added &quot;Num+&quot; in keypad bindings like this:

[Shortcuts]
BeginningOfLine=Num+Home
EndOfLine=Num+End
Next=Num+PgDown
Prior=Num+PgUp

Now it works as expected with no code change required.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1551790</commentid>
    <comment_count>3</comment_count>
    <who name="Pistos">bugs.kde.pistos</who>
    <bug_when>2015-10-21 19:19:51 +0000</bug_when>
    <thetext>Possible duplicate of https://bugs.kde.org/show_bug.cgi?id=183458 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2011784</commentid>
    <comment_count>4</comment_count>
    <who name="Justin Zobel">justin.zobel</who>
    <bug_when>2021-03-09 05:53:53 +0000</bug_when>
    <thetext>Thank you for the bug report.

As this report hasn&apos;t seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>