<?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>397932</bug_id>
          
          <creation_ts>2018-08-27 14:11:17 +0000</creation_ts>
          <short_desc>Cannot hold shift and make add selection while drawing a selection with bezier curve tool</short_desc>
          <delta_ts>2018-09-07 14:26:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Tools</component>
          <version>git master (please specify the git hash!)</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></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Raghavendra kamath">raghu</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          <cc>dimula73</cc>
    
    <cc>freebox64</cc>
    
    <cc>scottpetrovic</cc>
          
          <cf_commitlink>https://commits.kde.org/krita/6739f46bb6388d7d139fa3bb7c4c046801752644</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>1774467</commentid>
    <comment_count>0</comment_count>
    <who name="Raghavendra kamath">raghu</who>
    <bug_when>2018-08-27 14:11:17 +0000</bug_when>
    <thetext>While drawing a selection with bezier selection, it is not possible to hold the shift key and add to the selection like other selection tools.
While Holding shift and drawing a bezier curve the tool gets deactivated when you click the second node.

To reproduce : 

1. Open a new document

2. Draw a selection with bezier selection tool

3. Now hold shift and try to draw a new selection to add to the previous selection

The result is when you click to add the second node, the tool gets deactivated and the first node is gone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774483</commentid>
    <comment_count>1</comment_count>
    <who name="mvowada">freebox64</who>
    <bug_when>2018-08-27 15:36:47 +0000</bug_when>
    <thetext>Yes, I can confirm the issue which affects only the &quot;Bezier Curve Selection Tool&quot; (tested with 4.2.0-pre-alpha (git 95e1b63) on Ubuntu 14.04).
(A temporary workaround is to release the SHIFT key soon after the first click)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774725</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2018-08-28 12:12:43 +0000</bug_when>
    <thetext>The problem is that in Curve tool is used as a &quot;finish polygon&quot; shortcut. Basically, it was invented to avoid double-clicking with a stylus, which is a really complicated operation.

How should I fix this?

Here are the options:

1) Remove Shift+click/&quot;finish polygon&quot; shortcut at all
2) Assign &quot;finish polygon&quot; to some other shortcut. Which one?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774729</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2018-08-28 12:20:37 +0000</bug_when>
    <thetext>15:18 &lt; raghukamath&gt; dmitryK|log: i think pressing enter would be an alternative to complete selection instead of shift click
15:18 &lt; raghukamath&gt; which works now
15:19 &lt; raghukamath&gt; but i need to know deevad and scotts or Wolthera_laptop opinion on this
15:19 &lt; raghukamath&gt; since not providing shift is also a wrong thing,
15:20 &lt; raghukamath&gt; so if we remove shift click to complete , it won&apos;t take away any feature since pressing enter already is there</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774733</commentid>
    <comment_count>4</comment_count>
    <who name="Raghavendra kamath">raghu</who>
    <bug_when>2018-08-28 12:31:25 +0000</bug_when>
    <thetext>Currently you can check the polygon selection tool and polygon tool, if it is a selection tool the polygon selection tool ignore the shift left click to complete and uses shift to activate add to selection. while if it is a polygon tool, it uses shift to complete the shape.

I think bezier selection tool also should follow this paradigm, shift left click complete can be limited to bezier curve tool (where it shows this in tool tip too) but can be left out of the bezier curve selection tool, in the selection tool it can behave like all selection tool to add to selection when shift is held.

So to summarise properly

Remove shift + left click to complete from selection tool but keep it in normal bezier curve tool. this is the same behavior as polygon tool and polygon selection tool</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774735</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Petrovic">scottpetrovic</who>
    <bug_when>2018-08-28 12:39:42 +0000</bug_when>
    <thetext>it seems odd that we have two different shortcuts for completing a selection
1. Shift + click
2. Enter

We generally have Shift to be an addition modifier for selections, so it seems odd that we would ever use that for a &quot;complete&quot; action. I would say remove the Shift + click option.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774741</commentid>
    <comment_count>6</comment_count>
    <who name="Raghavendra kamath">raghu</who>
    <bug_when>2018-08-28 12:58:52 +0000</bug_when>
    <thetext>@ scott currently we have shift + left click to complete shape for only shape tools and not selection, so we can retain the behavior with the shape tools but remove it from selection tools.

Example is how polygon tool and polygon selection tool works now. we need to follow this same thing for bezier selection and bezier curve tool.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774774</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2018-08-28 15:15:59 +0000</bug_when>
    <thetext>Git commit fa65d03d27e70d9118445acef0350122ea888a18 by Dmitry Kazakov.
Committed on 28/08/2018 at 15:05.
Pushed by dkazakov into branch &apos;master&apos;.

Fix shift modifier in Curve Selection Tool

The modifier of the point clicked the last should define the
selection mode. For selection tools we just disable shift+click
&quot;path-close&quot; shortcut of the base path tool

M  +10   -8    libs/basicflakes/tools/KoCreatePathTool.cpp
M  +2    -3    libs/basicflakes/tools/KoCreatePathTool.h
M  +3    -4    libs/basicflakes/tools/KoCreatePathTool_p.h
M  +1    -12   plugins/tools/selectiontools/kis_tool_select_path.cc
M  +0    -2    plugins/tools/selectiontools/kis_tool_select_path.h

https://commits.kde.org/krita/fa65d03d27e70d9118445acef0350122ea888a18</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1779450</commentid>
    <comment_count>8</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2018-09-07 14:26:08 +0000</bug_when>
    <thetext>Git commit 6739f46bb6388d7d139fa3bb7c4c046801752644 by Boudewijn Rempt, on behalf of Dmitry Kazakov.
Committed on 07/09/2018 at 12:50.
Pushed by rempt into branch &apos;krita/4.1&apos;.

Fix shift modifier in Curve Selection Tool

The modifier of the point clicked the last should define the
selection mode. For selection tools we just disable shift+click
&quot;path-close&quot; shortcut of the base path tool

M  +10   -8    libs/basicflakes/tools/KoCreatePathTool.cpp
M  +2    -3    libs/basicflakes/tools/KoCreatePathTool.h
M  +3    -4    libs/basicflakes/tools/KoCreatePathTool_p.h
M  +1    -12   plugins/tools/selectiontools/kis_tool_select_path.cc
M  +0    -2    plugins/tools/selectiontools/kis_tool_select_path.h

https://commits.kde.org/krita/6739f46bb6388d7d139fa3bb7c4c046801752644</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>