<?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>484526</bug_id>
          
          <creation_ts>2024-03-26 13:57:22 +0000</creation_ts>
          <short_desc>Canceling the transfer of a key combination still shows shows the change</short_desc>
          <delta_ts>2026-04-20 22:10:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>systemsettings</product>
          <component>kcm_keys</component>
          <version>6.0.2</version>
          <rep_platform>Arch Linux</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>1</everconfirmed>
          <reporter>winblocker</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>4wy78uwh</cc>
    
    <cc>cwo.kde</cc>
    
    <cc>kde</cc>
    
    <cc>nate</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-desktop/-/commit/e137c9ab16362d9be9204a7d62735a67cda575f6</cf_commitlink>
          <cf_versionfixedin>6.7.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2305759</commentid>
    <comment_count>0</comment_count>
    <who name="">winblocker</who>
    <bug_when>2024-03-26 13:57:22 +0000</bug_when>
    <thetext>***
If you&apos;re not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you&apos;re reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
When i try changing an existing shortcut and use a key combination that is assigned to something else i get correctly asked if i want to transfer the key combination. However if i decline the new keys will still show up. However this is only visual and a refresh of the page will fix it. Does not work on empty bindings.

STEPS TO REPRODUCE
1. Try to overwrite a key combination with one that is in use somewhere else
2. Decline the popup that asks you if you want to re-assign
3. See the change despite you declining it
4. Close / re-open settings everything is as it should be

OBSERVED RESULT
It changes.

EXPECTED RESULT
It should not change.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6900 XT

ADDITIONAL INFORMATION
-</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2333821</commentid>
    <comment_count>1</comment_count>
    <who name="cwo">cwo.kde</who>
    <bug_when>2024-07-01 14:19:50 +0000</bug_when>
    <thetext>Can replicate on current neon developer.

Replication steps on a new user account:

1. System Settings &gt; Shortcuts
2. Select Emoji Selector, Add custom shortcut
3. Press Ctrl+Alt+Shift+O (or some other unassigned combination)
4. Click the button for the newly created shortcut
5. Press Meta+E
6. Select &quot;No&quot; in the resulting dialog.

Meta-E now displays for that shortcut. Clicking Konsole (or any other sidebar entry in the kcm), then returning to Emoji Selector restores the correct shortcut (Ctrl-Alt-Shift-O)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2508445</commentid>
    <comment_count>2</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-04-06 12:37:56 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3646</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2510106</commentid>
    <comment_count>3</comment_count>
    <who name="David Redondo">kde</who>
    <bug_when>2026-04-15 08:06:38 +0000</bug_when>
    <thetext>Git commit e137c9ab16362d9be9204a7d62735a67cda575f6 by David Redondo, on behalf of David Bacskay-Nagy.
Committed on 15/04/2026 at 07:24.
Pushed by davidre into branch &apos;master&apos;.

kcm/keys: fix shortcut editor not reverting on rejected change
Fixes an issue where canceling a key sequence change still left the modified value visible in the editor.
Adds a Connections handler to listen for shortcutChangeRejected and restore the original key sequence.

M  +3    -2    kcms/keys/kcm_keys.cpp
M  +1    -0    kcms/keys/kcm_keys.h
M  +9    -0    kcms/keys/ui/ShortcutActionDelegate.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/e137c9ab16362d9be9204a7d62735a67cda575f6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>