Bug 381319 - Keyboard modifier not caught when using Wacom Tablet [patch]
Summary: Keyboard modifier not caught when using Wacom Tablet [patch]
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Keyboard (show other bugs)
Version: 5.6.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-17 10:56 UTC by Kristian Karl
Modified: 2022-01-10 20:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0
Sentry Crash Report:


Attachments
Enable keyboard modifier for tablets Wacom (894 bytes, patch)
2017-06-17 10:56 UTC, Kristian Karl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian Karl 2017-06-17 10:56:56 UTC
Created attachment 106137 [details]
Enable keyboard modifier for tablets Wacom

When using the Wacom Tablet, the keyboard modifier is not correctly identified.

1) When face tagging a user can Press Ctrl key and press mouse left button, and thus creating a face tag rectangle.
2) Doing the same thing using a  Wacom Tablet does not work, unless the patch is applied.
Comment 1 caulier.gilles 2017-06-17 12:58:53 UTC
Thanks for your patch.

I'm not aware that we need to create this modification to take a care about tablet. I have one Watcom device at home, but i never tried to use it with DK.

Are you sure that we need to only patch code at this place. There are no other one to patch in this way ? This still compatible with Qt 5.6.x TLS (as we don't need to use Qt >= 5.7.x ? This do not have some side effects with normal keyboard support ?

Gilles Caulier
Comment 2 Kristian Karl 2017-06-17 15:13:06 UTC
Running "git grep QApplication::keyboardModifiers" there is one more place:
libs/widgets/itemview/imagedelegateoverlay.cpp in AbstractWidgetDelegateOverlay::checkIndexOnEnter

Maybe that should be changed as well? 

There are occurrences of perhaps similar usage of QDropEvent::keyboardModifiers in:
app/dragdrop/albumdragdrop.cpp
app/dragdrop/imagedragdrop.cpp
app/dragdrop/importdragdrop.cpp
app/dragdrop/tagdragdrop.cpp
Not sure if the behavior of QDropEvent::keyboardModifiers is the same as QApplication::keyboardModifiers(). If it is, then that should perhaps be changed as well?

If you'd like, I can implement the changes above and test is?


I've have been using this patch locally on my machine for 7 months. I have not seen any keyboard side effects due to this patch (with and without the Wacom device connected).
Comment 3 caulier.gilles 2017-06-17 15:18:05 UTC
yes, you can create a new patch with these code sections modified. Modify each section step by step and check if no regression appear with a classic keyboard.

Which Qt version do you use to compile digiKam ?

Note : patch must be created against git/master code, not against a release tarball, to simplify integration in repository.

Gilles Caulier
Comment 4 Kristian Karl 2017-06-17 15:23:22 UTC
Ok, I will do that.

I'm  using qt version 5.7.1
Comment 5 caulier.gilles 2018-04-05 04:55:12 UTC
Any feedback here ?
Comment 6 caulier.gilles 2020-08-02 12:32:01 UTC
Kristian any feedback here ? 

Note that we use Gitlab now and you can create patch easily to fork repository and make a Pull Request (PR) for review and integration.

https://invent.kde.org/graphics/digikam

Best regards

Gilles Caulier
Comment 7 caulier.gilles 2022-01-10 11:41:22 UTC
Hi Kristian and happy new year,

Do you seen my previous comment ?

Best 

Gilles Caulier
Comment 8 Kristian Karl 2022-01-10 17:45:05 UTC
Hi Gilles and happy new year!

I think we can close this report. I believe the modification for a tablet to work with DK is maybe unnecessary. 
I stopped using the tablet this way. Keyboard and mouse is much faster....

Best Kristian