<?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>417250</bug_id>
          
          <creation_ts>2020-02-07 00:51:10 +0000</creation_ts>
          <short_desc>Notes widget on the desktop steals the ctrl+v keyboard shortcut even when Folder View appears to have focus</short_desc>
          <delta_ts>2025-01-28 22:07:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kdeplasma-addons</product>
          <component>notes</component>
          <version>6.1.5</version>
          <rep_platform>Other</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>usability</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Yashkin">andreyyashkin</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>bugseforuns</cc>
    
    <cc>goodaqua</cc>
    
    <cc>med.medin.2014</cc>
    
    <cc>mrfrh</cc>
    
    <cc>myriam</cc>
    
    <cc>nanoblade9</cc>
    
    <cc>nate</cc>
    
    <cc>wbauer1</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kdeplasma-addons/-/commit/a226f8cb7661951ee56d1e7eac8993e61788c016</cf_commitlink>
          <cf_versionfixedin>6.3.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1908122</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Yashkin">andreyyashkin</who>
    <bug_when>2020-02-07 00:51:10 +0000</bug_when>
    <thetext>SUMMARY
When there exists a KNotes widget on desktop, it is impossible to paste files using Ctrl+V key sequence, because the file is inserted in the KNotes widget as file://PATH string

STEPS TO REPRODUCE
1. Add KNotes widget on desktop
2. Copy some file to buffer
3. Paste the file on desktop using Ctrl+V

OBSERVED RESULT
file://PATH string is inserted in KNotes widget

EXPECTED RESULT
File is copied on desktop

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
Kubuntu 19.10
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.12.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1908144</commentid>
    <comment_count>1</comment_count>
    <who name="Wolfgang Bauer">wbauer1</who>
    <bug_when>2020-02-07 06:58:10 +0000</bug_when>
    <thetext>(In reply to Andrey Yashkin from comment #0)
&gt; When there exists a KNotes widget on desktop
Plasma&apos;s notes widget is totally unrelated to KNotes, KNotes doesn&apos;t offer a widget to add to the desktop. Changing the product/component appropriately.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1908237</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-02-07 14:26:44 +0000</bug_when>
    <thetext>Confirmed, and this drives me crazy too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2135242</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-06-27 19:54:15 +0000</bug_when>
    <thetext>*** Bug 455914 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2135286</commentid>
    <comment_count>4</comment_count>
    <who name="ratijas">me</who>
    <bug_when>2022-06-27 22:22:23 +0000</bug_when>
    <thetext>Say HI to QML API, where shortcuts can&apos;t be assigned &quot;widget scope&quot;. Actions are global only and always ¯\_(ツ)_/¯

Maybe the best we could do is temporarily disable those actions completely when notes applet is not focused.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2135542</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-06-28 16:08:04 +0000</bug_when>
    <thetext>Then Paste wouldn&apos;t work on the desktop; doesn&apos;t seem ideal. There must be a satisfactory way to fix this somehow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2135966</commentid>
    <comment_count>6</comment_count>
    <who name="ratijas">me</who>
    <bug_when>2022-06-29 23:39:17 +0000</bug_when>
    <thetext>&gt; Then Paste wouldn&apos;t work on the desktop; doesn&apos;t seem ideal. There must be a satisfactory way to fix this somehow.

What I meant to say is that «Notes» applet&apos;s action should be disabled when the «Notes» applet is not focused, so that it (hopefully) would stop overriding window-global set of registered actions. (Not sure if what I&apos;m saying technically makes any sense, or it&apos;s just a moonspeak)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2136121</commentid>
    <comment_count>7</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-06-30 16:12:02 +0000</bug_when>
    <thetext>Yeah, that sounds reasonable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138826</commentid>
    <comment_count>8</comment_count>
    <who name="ratijas">me</who>
    <bug_when>2022-07-13 16:57:17 +0000</bug_when>
    <thetext>I briefly looked into shortcut API. So, normally there are two options to choose a shortcut context from: Application and Window. As the names imply, they work either on a per-window basis, or application-wide. There is no such option to limit them to a particular widget or QML subtree. There is no such thing as a FocusScope analogy.

On the other hand, normal regular text fields are common in everyday programs, and they somehow manage to grab their shortcuts only when they are focused. Haven&apos;t looked into that yet, but I think something is just a bit over-engineered in this particular applet&apos;s implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212592</commentid>
    <comment_count>9</comment_count>
    <who name="mrfrh">mrfrh</who>
    <bug_when>2023-02-28 16:44:19 +0000</bug_when>
    <thetext>*** Bug 451635 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212593</commentid>
    <comment_count>10</comment_count>
    <who name="mrfrh">mrfrh</who>
    <bug_when>2023-02-28 16:45:49 +0000</bug_when>
    <thetext>According to https://bugs.kde.org/show_bug.cgi?id=451635 (resolved as duplicate), this does not seem to happen on Wayland.
Still happens with X11 / Plasma 5.27.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2213277</commentid>
    <comment_count>11</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2023-03-02 13:07:39 +0000</bug_when>
    <thetext>(In reply to mrfrh from comment #10)
&gt; According to https://bugs.kde.org/show_bug.cgi?id=451635 (resolved as
&gt; duplicate), this does not seem to happen on Wayland.
&gt; Still happens with X11 / Plasma 5.27.1.

I can reproduce on Wayland session of neon unstable.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2357382</commentid>
    <comment_count>12</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-09-19 18:43:43 +0000</bug_when>
    <thetext>*** Bug 493369 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2393410</commentid>
    <comment_count>13</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-01-28 22:07:29 +0000</bug_when>
    <thetext>Fixed by Marco Martin with https://invent.kde.org/plasma/kdeplasma-addons/-/commit/a226f8cb7661951ee56d1e7eac8993e61788c016 for Plasma 6.3.0!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>