From 28a841d66a0cf2b4006e15e81f3bfba2014b1e00 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 14 Jan 2024 22:48:04 +0100 Subject: [PATCH] Add pipe --- crates/egui/src/data/key.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/egui/src/data/key.rs b/crates/egui/src/data/key.rs index af0bdea315b..eea3b15b1d1 100644 --- a/crates/egui/src/data/key.rs +++ b/crates/egui/src/data/key.rs @@ -41,6 +41,9 @@ pub enum Key { /// '/' Slash, + /// '|', a vertical bar + Pipe, + /// `?` Questionmark, @@ -190,6 +193,7 @@ impl Key { Self::Backtick, Self::Backslash, Self::Slash, + Self::Pipe, Self::Questionmark, // Digits: Self::Num0, @@ -294,6 +298,7 @@ impl Key { ";" | "Semicolon" => Self::Semicolon, "\\" | "Backslash" => Self::Backslash, "/" | "Slash" => Self::Slash, + "|" | "Pipe" => Self::Pipe, "?" | "Questionmark" => Self::Questionmark, "[" | "OpenBracket" => Self::OpenBracket, "]" | "CloseBracket" => Self::CloseBracket, @@ -382,6 +387,7 @@ impl Key { Self::Semicolon => ";", Self::Backslash => "\\", Self::Slash => "/", + Self::Pipe => "|", Self::Questionmark => "?", Self::OpenBracket => "[", Self::CloseBracket => "]", @@ -425,6 +431,7 @@ impl Key { Self::Semicolon => "Semicolon", Self::Backslash => "Backslash", Self::Slash => "Slash", + Self::Pipe => "Pipe", Self::Questionmark => "Questionmark", Self::OpenBracket => "OpenBracket", Self::CloseBracket => "CloseBracket",