Bug 444939 - samsung spen hard-coded buttons
Summary: samsung spen hard-coded buttons
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: Shortcuts and Canvas Input Settings (show other bugs)
Version: 5.0.0-beta2
Platform: Android Android 11.x
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-04 11:26 UTC by spandexwizard0
Modified: 2022-08-24 10:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description spandexwizard0 2021-11-04 11:26:49 UTC
SUMMARY: on basic model samsung tablets that support the s pen, such as the s6 lite, the side button is set to the middle mouse click. On a tablet (for me at least) this is not a very useful function, since most of the time this pans the view, and you can already pan with fingers. I would very much like to be able to reassign this button to a hotkey. (In my case to the set eraser mode toggle, which I use almost as much as the drawing tip). But because the button is programmed as a mouse click it cannot be assigned to a keyboard hotkey, and the kind of key it represents cannot be changed.

What I would like to see is the ability to configuring which kind of key the spen is.  Being able to give it a letter, any letter, would improve my workload a lot. Even setting it to some random hardcoded letter would be more useful, but a configurable option is probably best.

SOFTWARE/OS VERSIONS
Android 5.0.0 beta 2
Comment 1 sh_zam 2021-11-20 18:08:47 UTC
Currently, it is not possible to do something like this on S6 Lite. With that being said, it is not that hard to hack Qt to support something like a “toggle to activate/deactivate eraser” config. I did some quick testing and something like this seems to work: <https://gist.github.com/sh-zam/53ccb480dc4e97f54d159ec3990c7081>.

We can control it with a config inside Krita, but I’m not sure if this would be desirable, what do you think Halla?
Comment 2 Serenalis 2022-03-12 00:24:55 UTC
I suggest an alternative: Adding a configuration hotkey area for the mouse. That way, hotkeys can be bound for the mouse in the same way as the keyboard. Since the pen is registered as a mouse on the tablet, I think this would be a fine workaround, no? 

This may be too much to ask too, but programs like Clip Studio Paint have it set so holding down the S-Pen button registers as using the eraser for only the duration of it being held. A toggle would be great, but this may be even better if it's doable. 

Forgive me if this is a bad place to say it, but I, too, would very much enjoy a feature like this. I just got a Galaxy Tab S7 FE and while it came with a copy of Clip Studio Paint, they only run off of a subscription-basis for tablet and I would much prefer something like Krita instead. The inability to bind the S-Pen button to a key is a pain. I just spent considerable time researching this issue on Reddit and Krita's forums (and the Krita makers page) to no avail. Wanted to give my 2 cents as someone that works in software support. :)
Comment 3 spandexwizard0 2022-08-24 10:18:01 UTC
not going to lie i /hate/ that about clip. i always feel like i'm abusing my buttons. i'd much rather a toggle. but that's preference i suppose.