forked from DevComp/ssh-portfolio
Makes controls usable by taking SSH keystroke data (encoded in the xterm format) and converting them to crossterm `KeyCode`s / `KeyEvent`s and sending them to the `Tui`. Also adds support for suspension of the `Tui` over the SSH connection. Some minor refactoring was also done.
11 lines
294 B
Text
11 lines
294 B
Text
{
|
|
"keybindings": {
|
|
"Home": {
|
|
"<q>": "Quit", // Quit the application
|
|
"<Ctrl-d>": "Quit", // Another way to quit
|
|
"<Ctrl-c>": "Quit", // Yet another way to quit
|
|
"<Esc>": "Quit", // Final way to quit
|
|
"<Ctrl-z>": "Suspend" // Suspend the application
|
|
},
|
|
}
|
|
}
|