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 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);
}

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...