Skip to content

Commit

Permalink
Add pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 14, 2024
1 parent c303ad5 commit 28a841d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/egui/src/data/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ pub enum Key {
/// '/'
Slash,

/// '|', a vertical bar
Pipe,

/// `?`
Questionmark,

Expand Down Expand Up @@ -190,6 +193,7 @@ impl Key {
Self::Backtick,
Self::Backslash,
Self::Slash,
Self::Pipe,
Self::Questionmark,
// Digits:
Self::Num0,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -382,6 +387,7 @@ impl Key {
Self::Semicolon => ";",
Self::Backslash => "\\",
Self::Slash => "/",
Self::Pipe => "|",
Self::Questionmark => "?",
Self::OpenBracket => "[",
Self::CloseBracket => "]",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 28a841d

Please sign in to comment.