diff --git a/README.md b/README.md index c334c89..9e8656f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ This can be achieved as follows: ``` ### 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 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. diff --git a/src/userinterface.rs b/src/userinterface.rs index d9116c4..2aafb79 100644 --- a/src/userinterface.rs +++ b/src/userinterface.rs @@ -102,7 +102,7 @@ pub async fn get_user_rating(db: &Database) -> Result<(i64, i64)> { key: Key::Enter, .. } if is_valid => break, Input { - key: Key::Char('m'), + key: Key::Char('c'), ctrl: true, .. } => exit(0), @@ -137,7 +137,7 @@ pub async fn get_user_rating(db: &Database) -> Result<(i64, i64)> { key: Key::Enter, .. } if is_valid => break, Input { - key: Key::Char('m'), + key: Key::Char('c'), ctrl: true, .. } => exit(0),