Fixed AltGr characters not allowed in auth form

This commit is contained in:
veeso
2022-03-09 15:13:08 +01:00
committed by Christian Visintin
parent ad2781b62c
commit c45ebec261
6 changed files with 27 additions and 6 deletions
@@ -29,7 +29,7 @@ use super::{FormMsg, Msg, UiMsg};
use tui_realm_stdlib::{Input, List, Radio};
use tuirealm::command::{Cmd, CmdResult, Direction, Position};
use tuirealm::event::{Key, KeyEvent, KeyModifiers};
use tuirealm::event::{Key, KeyEvent};
use tuirealm::props::{Alignment, BorderSides, BorderType, Borders, Color, InputType, TextSpan};
use tuirealm::{Component, Event, MockComponent, NoUserEvent, State, StateValue};
@@ -447,7 +447,7 @@ impl Component<Msg, NoUserEvent> for BookmarkName {
}
Event::Keyboard(KeyEvent {
code: Key::Char(ch),
modifiers: KeyModifiers::NONE,
..
}) => {
self.perform(Cmd::Type(ch));
Some(Msg::None)