Re: [Tuxpaint-devel] Shortcut ([Del] key) for quick access to a small eraser
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2022-09-29 05:00:05
|
On Wed, Sep 28, 2022 at 09:24:02PM -0400, Mark K. Kim wrote: > Hi Bill, > > On Wed, Sep 28, 2022 at 5:13 AM Bill Kendrick <nb...@so...> wrote: > > > So, if you notice any glitches, > > please let me know ASAP so I can try to address them. > > > > 1. The erase operation doesn't start until the delete key and the primary > mouse button are both pressed. My instinct is to expect the mouse cursor > to change the moment the delete key is pressed to signal that the function > of the primary button on the mouse has changed from "draw" to "erase". I don't disagree. I'm just a little fearful of tacking too much more on in here. :-) It would also need to be done for the [Ctrl]+click for the pipette tool, for consistency, IMO. > 2. The erase operation doesn't stop if the mouse is moving quickly even > after both the delete key and the primary mouse button are both released. > This can go on indefinitely as far as I can tell as long as the mouse > continues to move quickly. Hrm, it should exit on SDL_MOUSEBUTTONUP, but perhaps if you move very quickly some of the events get lost. I'm unable to replicate this, though. (And I was REALLY going nuts with my mouse :) ) Also, the function will also exit when you press [Esc] (SDL_KEYDOWN with SDLK_ESCAPE). > 3. Using the "delete" key to erase on the Mac will be confusing and > difficult. Confusing because the key labeled "delete" on the Mac keyboard > is actually where the backspace key is on the PC keyboard and works like > the backspace key. And difficult because triggering the scancode > equivalent to PC's delete on the Mac keyboard, which lacks the extended > keys on the default out-of-the-box keyboard, involves pressing and holding > down simultaneously the Fn key on the bottom-left of the keyboard and > pressing the delete key on the top-right of the keyboard, which is a two > handed operation for most people. Therefore holding down the "delete key" > and using the mouse simultaneously is a three-handed operation on the Mac! > :D Hah! Whoops, rookie mistake! Sorry! Okay, so I'm going to restrict this feature such that it does not work _at all_ while using the Text or Label tool, and am using the [X] key, instead of [Del]. QWERTY, QWERTZ, and AZERTY all have "X". However, ÄWERTY, and sometimes ĄŽERTY, do not have "X". It's a bit of a rabbit hole. Any problems with this plan, does anyone think? -- -bill! Sent from my computer |