Diffusion Krita e569ade5b75c

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