mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-20 10:53:19 +00:00
Fixed some issues with keys and scrollwheel input after a dialog window has been shown
This commit is contained in:
parent
173a2cb055
commit
2d926198a9
2 changed files with 11 additions and 4 deletions
|
@ -1057,6 +1057,8 @@ namespace CodeImp.DoomBuilder
|
|||
// Open map file
|
||||
OpenMapFile(openfile.FileName);
|
||||
}
|
||||
|
||||
openfile.Dispose();
|
||||
}
|
||||
|
||||
// This opens the specified file
|
||||
|
@ -1214,7 +1216,7 @@ namespace CodeImp.DoomBuilder
|
|||
|
||||
// Set this to false so we can see if errors are added
|
||||
General.ErrorLogger.IsErrorAdded = false;
|
||||
|
||||
|
||||
// Save the map
|
||||
if(map.SaveMap(savefile.FileName, MapManager.SAVE_AS))
|
||||
{
|
||||
|
@ -1237,7 +1239,8 @@ namespace CodeImp.DoomBuilder
|
|||
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
|
||||
|
||||
savefile.Dispose();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -1294,6 +1297,7 @@ namespace CodeImp.DoomBuilder
|
|||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
|
||||
savefile.Dispose();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -269,7 +269,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
// Show normal caption
|
||||
this.Text = Application.ProductName;
|
||||
}
|
||||
|
||||
|
||||
// Update the status bar
|
||||
UpdateStatusbar();
|
||||
|
||||
|
@ -398,7 +398,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
private void MainForm_Activated(object sender, EventArgs e)
|
||||
{
|
||||
windowactive = true;
|
||||
|
||||
|
||||
// Resume any exclusive mouse input
|
||||
ResumeExclusiveMouseInput();
|
||||
display.Focus();
|
||||
|
@ -412,6 +412,9 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
// Release all pressed keys
|
||||
General.Actions.ReleaseAllKeys();
|
||||
mousebuttons = MouseButtons.None;
|
||||
shift = false;
|
||||
ctrl = false;
|
||||
alt = false;
|
||||
|
||||
// Stop exclusive mouse input
|
||||
BreakExclusiveMouseInput();
|
||||
|
|
Loading…
Reference in a new issue