Bug 339842 - Need a way to assign shortcut to move layers or mask up and down in layer stack
Summary: Need a way to assign shortcut to move layers or mask up and down in layer stack
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Layer Stack (show other bugs)
Version: git master (please specify the git hash!)
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 344030 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-10 14:04 UTC by Raghavendra kamath
Modified: 2016-01-05 09:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch assigning default shortcut for raising and lowering a layer (5.96 KB, patch)
2015-12-06 19:02 UTC, Raghavendra kamath
Details
Updated patch (4.20 KB, patch)
2015-12-07 03:51 UTC, Raghavendra kamath
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raghavendra kamath 2014-10-10 14:04:58 UTC
This is a request for a shortcut for moving layers or mask up and down in layer stack. currently the only way to do it is click up and down arrow in layer stack docker.

the shortcuts can be ctrl + ]  for up and ctrl + [ for moving down

i searched in configure shortcut dialogue box but couldn't find a entry to have a custom shortcut for this action.


Reproducible: Always
Comment 1 Raghavendra kamath 2015-04-07 12:48:38 UTC
*** Bug 344030 has been marked as a duplicate of this bug. ***
Comment 2 Raghavendra kamath 2015-04-07 12:50:13 UTC
there was a duplicate bug which requested following functionality : 

We need a fast way to move layers to the top or bottom of the layer stack. Now only way is to grab and drag move them or click the move layer icons many times.

Proposed method would be to Shift+click the move icons to send the layers to top or bottom.
Comment 3 Raghavendra kamath 2015-12-06 19:02:16 UTC
Created attachment 95916 [details]
patch assigning default shortcut for raising and lowering a layer

This patch only assigns shortcut for moving layer one step up and down, I am yet to find a way to move layer to absolute top and down.
I have assigned the shortcut for moving up -> 'Ctrl+]' and for moving down -> 'Ctrl+['
these were assigned to rotate canvas earlier but we already have number 4 and 6 hence it was redundant for that and besides PS also has similar shortcut for moving layer up and down.
Comment 4 Raghavendra kamath 2015-12-07 03:51:14 UTC
Created attachment 95920 [details]
Updated patch

On Animtims suggestion i changed the shortcuts and kept the rotation shortcut as it is
the new proposed shortcuts are :
move layer up - Ctrl + PgUp
move layer down - Ctrl + Pgdwn

this will be inline with our shortcut for activating layers
Comment 5 Halla Rempt 2015-12-12 14:56:03 UTC
Git commit bc7eb29b3c11fb39abed176622555f8f793955ba by Boudewijn Rempt.
Committed on 12/12/2015 at 14:55.
Pushed by rempt into branch 'calligra/2.9'.

Add shortcuts to lower/raise the current layer

Patch by Raghavendra kamath. Thanks!
CCMAIL:raghu@raghukamath.com

M  +2    -0    krita/krita.action
M  +20   -2    krita/plugins/extensions/dockers/defaultdockers/kis_layer_box.cpp

http://commits.kde.org/calligra/bc7eb29b3c11fb39abed176622555f8f793955ba
Comment 6 Raghavendra kamath 2016-01-05 09:59:27 UTC
I am closing this bug as this feature is in 2.9 and 3.0 as well.