CSSG-Labs / PyNote

Text Editor Written in Python
GNU General Public License v3.0
3 stars 4 forks source link

Let User Save with Control + s #42

Closed PatrickBruso closed 2 years ago

PatrickBruso commented 2 years ago

To allow for quicker saving, add code to the application that will allow the user to invoke the "save" function by pressing a combination of the control key + the 's' key. Instead of having to click File -> Save, the user can now just type 'ctrl + s' to save the file.

glunkad commented 2 years ago

Hey @PatrickBruso , I'm interested in contributing to this issue, so before I start working it, would you mind sparing your time explaining what the issue is about and pointing me to some resources to get started.

PatrickBruso commented 2 years ago

Hi @9gl I don't really have any resources for this issue but I'm sure there's plenty out there. It's fairly straightforward. We need to watch for key-presses and, if the user presses both the "Ctrl" key and the "s" key at the same time, call the 'save' function.

glunkad commented 2 years ago

/assign