Properly check Shift toggling in DolphinRemoveAction

Authored by elvisangelaccio on Sep 21 2016, 4:13 PM.

Description

Properly check Shift toggling in DolphinRemoveAction

Documentation of QGuiApplication::keyboardModifiers() says that "It should
be noted this may not reflect the actual keys held on the input device at
the time of calling but rather the modifiers as last reported in one of
the above events".

Since this method is called in DolphinContextMenu's keyPressEvent()
and keyReleaseEvent(), the first time that keyboardModifiers() is
called it doesn't report that shift has been pressed.

Replacing this method with queryKeyboardModifiers() does the job
because the latter doesn't care about the event queue.

BUG: 354301
FIXED-IN: 16.08.2
REVIEW: 128972

Details

Committed
elvisangelaccioSep 21 2016, 4:13 PM
Parents
R318:e93e6d4cc523: Don't load twice kfileitemaction plugins with json metadata
Branches
Unknown
Tags
Unknown