mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Fixed AltGr characters not allowed in auth form
This commit is contained in:
committed by
Christian Visintin
parent
ad2781b62c
commit
c45ebec261
@@ -238,9 +238,14 @@ impl Component<Msg, NoUserEvent> for SshHost {
|
||||
self.perform(Cmd::Delete);
|
||||
Some(Msg::None)
|
||||
}
|
||||
Event::Keyboard(KeyEvent {
|
||||
// NOTE: escaped control sequence
|
||||
code: Key::Char('h') | Key::Char('r') | Key::Char('s'),
|
||||
modifiers: KeyModifiers::CONTROL,
|
||||
}) => Some(Msg::None),
|
||||
Event::Keyboard(KeyEvent {
|
||||
code: Key::Char(ch),
|
||||
modifiers: KeyModifiers::NONE | KeyModifiers::SHIFT,
|
||||
..
|
||||
}) => {
|
||||
self.perform(Cmd::Type(ch));
|
||||
Some(Msg::None)
|
||||
|
||||
Reference in New Issue
Block a user