<?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>456823</bug_id>
          
          <creation_ts>2022-07-17 14:57:57 +0000</creation_ts>
          <short_desc>Pressing ESC key inside Spectacle&apos;s annotation mode inappropriately quits the app</short_desc>
          <delta_ts>2022-07-27 22:55:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>Spectacle</product>
          <component>General</component>
          <version>unspecified</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="D3XT3R">tresdexter</reporter>
          <assigned_to name="Antonio Prcela">antonio.prcela</assigned_to>
          <cc>antonio.prcela</cc>
    
    <cc>kde</cc>
    
    <cc>nate</cc>
    
    <cc>nicolas.fella</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/spectacle/commit/37ee395ca0e1ef05febc82daa3a2ffb2431a65b5</cf_commitlink>
          <cf_versionfixedin>22.08</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2139716</commentid>
    <comment_count>0</comment_count>
    <who name="D3XT3R">tresdexter</who>
    <bug_when>2022-07-17 14:57:57 +0000</bug_when>
    <thetext>Currently when you&apos;re notating an image in Spectacle and hit the ESC key, Spectacle closes and you lose your screenshot and all your annotations :(

The suggestion is that when pressing the ESC key the action is to exit the tool currently in use (arrow, line, text, pen, etc) and automatically return the focus to the selection tool or no tool at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2140000</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-07-18 20:38:47 +0000</bug_when>
    <thetext>Agreed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2141071</commentid>
    <comment_count>2</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2022-07-23 15:24:48 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/147</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2141072</commentid>
    <comment_count>3</comment_count>
    <who name="Antonio Prcela">antonio.prcela</who>
    <bug_when>2022-07-23 15:25:15 +0000</bug_when>
    <thetext>as written in commit msg:

&quot;User&apos;s request is to only exit current tool in annotator.
That&apos;d be something upstream if I&apos;m not mistaken.
This does not solve the feature request 100%, instead it only
improves the behaviour a bit.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2141514</commentid>
    <comment_count>4</comment_count>
    <who name="D3XT3R">tresdexter</who>
    <bug_when>2022-07-25 22:40:24 +0000</bug_when>
    <thetext>(In reply to Antonio Prcela from comment #3)
&gt; as written in commit msg:
&gt; 
&gt; &quot;User&apos;s request is to only exit current tool in annotator.
&gt; That&apos;d be something upstream if I&apos;m not mistaken.
&gt; This does not solve the feature request 100%, instead it only
&gt; improves the behaviour a bit.&quot;

You are correct, this only lessens the loss.
With the proposed solution, you didn&apos;t lose the screenshot, but I lost all the annotations made :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2141549</commentid>
    <comment_count>5</comment_count>
    <who name="Antonio Prcela">antonio.prcela</who>
    <bug_when>2022-07-26 06:18:13 +0000</bug_when>
    <thetext>(In reply to D3XT3R from comment #4)
&gt; (In reply to Antonio Prcela from comment #3)
&gt; &gt; as written in commit msg:
&gt; &gt; 
&gt; &gt; &quot;User&apos;s request is to only exit current tool in annotator.
&gt; &gt; That&apos;d be something upstream if I&apos;m not mistaken.
&gt; &gt; This does not solve the feature request 100%, instead it only
&gt; &gt; improves the behaviour a bit.&quot;
&gt; 
&gt; You are correct, this only lessens the loss.
&gt; With the proposed solution, you didn&apos;t lose the screenshot, but I lost all
&gt; the annotations made :(

That seems to depend on your version of kImageannotator. Doesn&apos;t lose annotations on my end when i press ESC.
kImageannotator version: 0.6.1
do: `ls /usr/lib/ | grep libkImage` and see what version number you got at, for example: libkImageAnnotator.so.0.6.1
iirc 0.6.0 is atm the latest one, i build 0.6.1 myself from source</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2141550</commentid>
    <comment_count>6</comment_count>
    <who name="Antonio Prcela">antonio.prcela</who>
    <bug_when>2022-07-26 06:26:29 +0000</bug_when>
    <thetext>Git commit dd1d7baecd7a3d9356992151e57f1c380e9500c8 by Antonio Prcela.
Committed on 26/07/2022 at 06:25.
Pushed by aprcela into branch &apos;release/22.08&apos;.

using ESC while in annotation mode will close annotator instead of closing spectacle

User&apos;s request is to only exit current tool in annotator.
That&apos;d be something upstream if I&apos;m not mistaken.
This does not solve the feature request 100%, instead it only
improves the behaviour a bit.

M  +8    -0    src/Gui/KSMainWindow.cpp

https://invent.kde.org/graphics/spectacle/commit/dd1d7baecd7a3d9356992151e57f1c380e9500c8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2141551</commentid>
    <comment_count>7</comment_count>
    <who name="Antonio Prcela">antonio.prcela</who>
    <bug_when>2022-07-26 06:28:46 +0000</bug_when>
    <thetext>Git commit 37ee395ca0e1ef05febc82daa3a2ffb2431a65b5 by Antonio Prcela.
Committed on 26/07/2022 at 06:28.
Pushed by aprcela into branch &apos;master&apos;.

using ESC while in annotation mode will close annotator instead of closing spectacle

User&apos;s request is to only exit current tool in annotator.
That&apos;d be something upstream if I&apos;m not mistaken.
This does not solve the feature request 100%, instead it only
improves the behaviour a bit.


(cherry picked from commit dd1d7baecd7a3d9356992151e57f1c380e9500c8)

M  +8    -0    src/Gui/KSMainWindow.cpp

https://invent.kde.org/graphics/spectacle/commit/37ee395ca0e1ef05febc82daa3a2ffb2431a65b5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>