Diffusion Krita aa3e7b214ac6

Add hotkey to toggle between the two most recently selected layers

Authored by nicholasl on Dec 20 2016, 9:04 PM.

Description

Add hotkey to toggle between the two most recently selected layers

Although this generally seems to work fine, I have noticed two minor problems that I'm not sure how to solve:

  • Using the hotkey after reordering layers will cause the wrong layer to be selected. This is because activateNodeImpl() gets called when a layer is moved around in the stack.
  • Bug 373741 ("Drawing while switching between layers with PgUp/PgDown results in a layer acting like it's in a locked group") applies and is easier to reproduce (at step 2, hold the hotkey instead of alternating page-up and page-down).

Differential Revision: https://phabricator.kde.org/D3750
Ref T1734

Details

Committed
nicholaslDec 20 2016, 9:04 PM
Parents
R37:b4bee9dd151b: Fix displayed color space name for 16-bit float XYZ
Branches
Unknown
Tags
Unknown
Tasks
T1734: "Switch to Previous Layer"