diff --git a/README.md b/README.md
index 39b6ec9..2e30f4f 100644
--- a/README.md
+++ b/README.md
@@ -110,6 +110,7 @@ If you want to add connections, you need to edit your config file. For more info
| / | Filter |
| ? | Help |
| 1, 2, 3, 4, 5 | Switch to records/columns/constraints/foreign keys/indexes tab |
+| Esc | Hide pop up |
## Configuration
diff --git a/src/app.rs b/src/app.rs
index abfc7b1..db41011 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -113,6 +113,7 @@ impl App {
fn commands(&self) -> Vec {
let mut res = vec![
+ CommandInfo::new(command::exit_pop_up(&self.config.key_config)),
CommandInfo::new(command::filter(&self.config.key_config)),
CommandInfo::new(command::help(&self.config.key_config)),
CommandInfo::new(command::toggle_tabs(&self.config.key_config)),
diff --git a/src/components/command.rs b/src/components/command.rs
index 961b8c6..e569309 100644
--- a/src/components/command.rs
+++ b/src/components/command.rs
@@ -172,3 +172,10 @@ pub fn help(key_config: &KeyConfig) -> CommandText {
CMD_GROUP_GENERAL,
)
}
+
+pub fn exit_pop_up(key_config: &KeyConfig) -> CommandText {
+ CommandText::new(
+ format!("Exit pop up [{}]", key_config.exit_popup),
+ CMD_GROUP_GENERAL,
+ )
+}