Create a new function to quit the text editor window and all resources related to it.
This new function will be associated to Exit shortcut that's under File menu
Behavior of this new function
this new function will be the following behaviors:
when the user use it, if there's any change in file, a question dialog to ask the user to save the file content will be appear
if there isn't any change in file, the text editor will be closed
Exit Function
Description
Create a new function to quit the text editor window and all resources related to it. This new function will be associated to Exit shortcut that's under File menu
Behavior of this new function
this new function will be the following behaviors: