refactor, added ip validation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#[allow(non_snake_case)]
|
||||
#![allow(non_snake_case)]
|
||||
mod app;
|
||||
mod ui;
|
||||
|
||||
@@ -114,7 +114,7 @@ fn runApp<B: Backend>(app: &mut AppState, terminal: &mut Terminal<B>) -> Result<
|
||||
(KeyModifiers::NONE, KeyCode::Tab) => app.nextField(),
|
||||
(KeyModifiers::SHIFT, KeyCode::Tab) => app.prevField(),
|
||||
|
||||
(m, KeyCode::Char(v)) => {
|
||||
(_, KeyCode::Char(v)) => {
|
||||
if let Some(e) = &app.currentlyEditing {
|
||||
let mut isIP = false;
|
||||
let opField = match e {
|
||||
|
||||
Reference in New Issue
Block a user