parsql-cli 0.5.0

Command-line interface for parsql database toolkit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Key binding definitions

use crossterm::event::{KeyCode, KeyEvent, KeyModifiers};

pub fn is_quit_key(key: &KeyEvent) -> bool {
    matches!(
        key,
        KeyEvent {
            code: KeyCode::Char('q'),
            modifiers: KeyModifiers::CONTROL,
            ..
        }
    )
}