mirror of
https://github.com/veeso/termscp.git
synced 2026-09-27 06:21:22 -07:00
Categorize Auth activity msg
This commit is contained in:
committed by
Christian Visintin
parent
4e802f1dc5
commit
84cb775679
@@ -25,7 +25,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
use super::{FileTransferProtocol, Msg};
|
||||
use super::{FileTransferProtocol, FormMsg, Msg, UiMsg};
|
||||
|
||||
mod bookmarks;
|
||||
mod form;
|
||||
@@ -63,27 +63,27 @@ impl Component<Msg, NoUserEvent> for GlobalListener {
|
||||
Event::Keyboard(KeyEvent {
|
||||
code: Key::Esc | Key::Function(10),
|
||||
..
|
||||
}) => Some(Msg::ShowQuitPopup),
|
||||
}) => Some(Msg::Ui(UiMsg::ShowQuitPopup)),
|
||||
Event::Keyboard(KeyEvent {
|
||||
code: Key::Char('c'),
|
||||
modifiers: KeyModifiers::CONTROL,
|
||||
}) => Some(Msg::EnterSetup),
|
||||
}) => Some(Msg::Form(FormMsg::EnterSetup)),
|
||||
Event::Keyboard(KeyEvent {
|
||||
code: Key::Char('h'),
|
||||
modifiers: KeyModifiers::CONTROL,
|
||||
}) => Some(Msg::ShowKeybindingsPopup),
|
||||
}) => Some(Msg::Ui(UiMsg::ShowKeybindingsPopup)),
|
||||
Event::Keyboard(KeyEvent {
|
||||
code: Key::Function(1),
|
||||
..
|
||||
}) => Some(Msg::ShowKeybindingsPopup),
|
||||
}) => Some(Msg::Ui(UiMsg::ShowKeybindingsPopup)),
|
||||
Event::Keyboard(KeyEvent {
|
||||
code: Key::Char('r'),
|
||||
modifiers: KeyModifiers::CONTROL,
|
||||
}) => Some(Msg::ShowReleaseNotes),
|
||||
}) => Some(Msg::Ui(UiMsg::ShowReleaseNotes)),
|
||||
Event::Keyboard(KeyEvent {
|
||||
code: Key::Char('s'),
|
||||
modifiers: KeyModifiers::CONTROL,
|
||||
}) => Some(Msg::ShowSaveBookmarkPopup),
|
||||
}) => Some(Msg::Ui(UiMsg::ShowSaveBookmarkPopup)),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user