<?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>517885</bug_id>
          
          <creation_ts>2026-03-20 10:12:33 +0000</creation_ts>
          <short_desc>Can&apos;t assign number key without modifier as tag shortcut</short_desc>
          <delta_ts>2026-03-20 15:24:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Usability-Keyboard</component>
          <version>9.0.0</version>
          <rep_platform>Kubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>0</everconfirmed>
          <reporter>gett37</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
    
    <cc>metzpinguin</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/digikam/-/commit/0ba4f89d9639bca03709a8a47a4f9ab3cadf7aff</cf_commitlink>
          <cf_versionfixedin>9.1.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2504917</commentid>
    <comment_count>0</comment_count>
    <who name="">gett37</who>
    <bug_when>2026-03-20 10:12:33 +0000</bug_when>
    <thetext>SUMMARY
It&apos;s possible to assign Ctrl+6 as a shortcut to tag an image, but plain 6 key is not accepted, nor 6 on numpad. It applies to all numbers, not just six. 

STEPS TO REPRODUCE
1.  Open Tag Manager;
2. For any tag, click on Shortcut button, it will start listening;
3. Press 6 (not on numpad).

OBSERVED RESULT
Nothing happens or changes, like if you didn&apos;t touch your keyboard.

EXPECTED RESULT
Key 6 is registered as shortcut for chosen tag.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 25.10
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2
Kernel Version: 6.17.0-19-generic (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
I&apos;ve found a workaround:

Settings dropdown -&gt; Configure Keyboard Shortcuts... -&gt; Assign 6 as alternate shortcut for chosen tag.

This listener accepts number keys.

Also, trying to use numpad keys in Tag manager breaks Shortcut listener key, it will be in incorrect state even when you switch to another tag.

I think this function was working in Windows 11. Now I&apos;m using appimage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2504921</commentid>
    <comment_count>1</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-03-20 10:24:41 +0000</bug_when>
    <thetext>Numbers alone don&apos;t work here under Windows either. This shortcut configuration uses digiKam from the KF6 API. I can well imagine that it&apos;s intentional that numbers can only be used with modifiers.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2504927</commentid>
    <comment_count>2</comment_count>
    <who name="">gett37</who>
    <bug_when>2026-03-20 11:07:34 +0000</bug_when>
    <thetext>(In reply to Maik Qualmann from comment #1)
&gt; Numbers alone don&apos;t work here under Windows either. This shortcut
&gt; configuration uses digiKam from the KF6 API. I can well imagine that it&apos;s
&gt; intentional that numbers can only be used with modifiers.
&gt; 
&gt; Maik

Right now I have some tags assigned to 1-3 keys without modifiers, I&apos;ve assigned them this way without a hassle some time ago. 99% I did it in Tag manger in a normal way.

Now I&apos;ve found a workaround - in `Configure Keyboard Shortcuts` menu instead of assigning alternative shortcut key, you can change primary one, number alone will register just fine (but not a numpad key).

So this is what I can do to get what I want:
1. In Tag manager, assign desired tag to Ctrl+6.
2. In `Configure Keyboard Shortcuts` find it and reassign it to just 6 by pressing this number not on numpad.
3. Result: Now I can use both regular and numpad 6 as a shortcut for this tag.

I think nothing is wrong in using numbers without modifiers for shortcuts. They don&apos;t do anything by default.

I hope button in Tag manager will start working same way as one in `Configure Keyboard Shortcuts` does. It would be unfortunate if instead I will loose my workaround I&apos;ve just found. Addigning desired functions to numpad keys can be very convenient, there are a lot of them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2504929</commentid>
    <comment_count>3</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-03-20 11:30:33 +0000</bug_when>
    <thetext>Okay, a look at the code shows that we are indeed forcing a modifier key.

@Gilles, was there a reason to do this for tag shortcuts?

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2504930</commentid>
    <comment_count>4</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-03-20 11:43:49 +0000</bug_when>
    <thetext>It looks like a faulty port to the KF6 API.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2504931</commentid>
    <comment_count>5</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2026-03-20 11:44:14 +0000</bug_when>
    <thetext>Forcing which one exactly ?

I remember some keyboard shortcuts to mimic Adobe products... It&apos;s hardcoded in code with an explicit comment.

Gilles</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2504935</commentid>
    <comment_count>6</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-03-20 12:17:43 +0000</bug_when>
    <thetext>https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/tags/manager/tagpropwidget.cpp?ref_type=heads#L146

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2504966</commentid>
    <comment_count>7</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2026-03-20 13:46:07 +0000</bug_when>
    <thetext>I don&apos;t remember this kind of code. It&apos;s sounds like a fast port to Qt6 as well...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2504999</commentid>
    <comment_count>8</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-03-20 15:24:57 +0000</bug_when>
    <thetext>Git commit 0ba4f89d9639bca03709a8a47a4f9ab3cadf7aff by Maik Qualmann.
Committed on 20/03/2026 at 15:24.
Pushed by mqualmann into branch &apos;master&apos;.

fix Key Sequence Recorder pattern
FIXED-IN: 9.1.0

M  +1    -1    NEWS
M  +1    -1    core/libs/tags/manager/tagpropwidget.cpp

https://invent.kde.org/graphics/digikam/-/commit/0ba4f89d9639bca03709a8a47a4f9ab3cadf7aff</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>