Sign in to follow this  
digpz

Version 3.0 Beta 3 Unsaved Changes Dialog

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.

Share this post


Link to post
Share on other sites

Thank you. :) That's the shortest turnaround I've ever experienced for a bug.

Are you going to put it in the next beta release?

By the way, was it a problem with assigning event handlers?

Share this post


Link to post
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);
}

Share this post


Link to post
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.

Sign in to follow this