fix parsing raw: keycodes

refs: #1824
This commit is contained in:
Wez Furlong committed 2022-04-06 07:01:10 -07:00
1 parent 16e5a3604d
commit a1b573c3c5
1 file changed
+1 -1
+1 -1
View File
@@ -109,7 +109,7 @@ impl TryFrom<String> for DeferredKeyCode {
impl TryFrom<&str> for DeferredKeyCode {
type Error = anyhow::Error;
fn try_from(s: &str) -> anyhow::Result<DeferredKeyCode> {
if s.starts_with("mapped:") || s.starts_with("phys:") {
if s.starts_with("mapped:") || s.starts_with("phys:") || s.starts_with("raw:") {
let key = Self::parse_str(&s)?;
return Ok(DeferredKeyCode::KeyCode(key));
}