Jump to content

Paint.NET: Modifiers handling

Recommended Posts

The are some actions where a modifier key changes the behaviour of a function in Paint.NET.

I.e, pressing the SHIFT key forces the switch between drawing an ellipse and a circle.

My small issue here is that the application does not react immediately. You always have to move the mouse a bit.


Maybe add something like this:



Keys _lastModifiers;

protected override void OnKeyDown(KeyEventArgs kevent)
    if ((kevent.KeyData & Keys.Modifiers) != _lastModifiers)
        _lastModifiers = (kevent.KeyData & Keys.Modifiers);
        // adapt your action i.e repeat the last OnMouseMove with the same location





midoras signature.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...