Update ctrl + c

This commit is contained in:
2024-03-25 16:24:51 +01:00
parent 8cea0b89a0
commit f7daed8a22
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ This can be achieved as follows:
``` ```
### Exit the program ### Exit the program
To avoid exiting the program by mistake you have to press `ctrl + m` to leave the prompt. To avoid exiting the program by mistake you have to press `ctrl + c` to leave the prompt.
### Database ### Database
The collected data will be stored in a sqlite database. The current working directory must be readable and writeable to store the `ratings.db` file. The collected data will be stored in a sqlite database. The current working directory must be readable and writeable to store the `ratings.db` file.

View File

@@ -102,7 +102,7 @@ pub async fn get_user_rating(db: &Database) -> Result<(i64, i64)> {
key: Key::Enter, .. key: Key::Enter, ..
} if is_valid => break, } if is_valid => break,
Input { Input {
key: Key::Char('m'), key: Key::Char('c'),
ctrl: true, ctrl: true,
.. ..
} => exit(0), } => exit(0),
@@ -137,7 +137,7 @@ pub async fn get_user_rating(db: &Database) -> Result<(i64, i64)> {
key: Key::Enter, .. key: Key::Enter, ..
} if is_valid => break, } if is_valid => break,
Input { Input {
key: Key::Char('m'), key: Key::Char('c'),
ctrl: true, ctrl: true,
.. ..
} => exit(0), } => exit(0),