Jump to content

Version 3.0 Beta 3 Unsaved Changes Dialog


digpz

Recommended Posts

I should have explained more. :oops:

When I push space, I see the save button go down and when I release space, the button comes back up like a normal command button but the filie dialog doesn't appear.

It appears that the file dialog only appears when I click on the save button.

Link to comment
Share on other sites

Yes, it will be in the next release.

No, it was not an event handler assignment problem.

protected override void OnKeyUp(KeyEventArgs e)
{
   if (e.KeyCode == Keys.Space)
   {
       this.drawPressed = false;
       Refresh();
       PerformClick();    // this line of code was missing!
   }

   base.OnKeyUp(e);
}

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

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.

Guest
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...