diff --git a/data/keyboards/pin/us.yaml b/data/keyboards/pin/us.yaml new file mode 100644 index 00000000..85467af7 --- /dev/null +++ b/data/keyboards/pin/us.yaml @@ -0,0 +1,20 @@ +--- +margins: { top: 4, side: 0, bottom: 4 } +outlines: + default: { width: 120, height: 52 } + +views: + base: + - "1 2 3" + - "4 5 6" + - "7 8 9" + - "BackSpace 0 Return" + +buttons: + BackSpace: + icon: "edit-clear-symbolic" + action: erase + Return: + icon: "key-enter" + keysym: "Return" + diff --git a/src/data/loading.rs b/src/data/loading.rs index 8f362a67..ceb524dd 100644 --- a/src/data/loading.rs +++ b/src/data/loading.rs @@ -168,9 +168,9 @@ fn get_directory_string( None => match content_purpose { ContentPurpose::Number => Special("number"), ContentPurpose::Digits => Special("number"), - ContentPurpose::Pin => Special("number"), ContentPurpose::Phone => Special("number"), ContentPurpose::Terminal => Special("terminal"), + ContentPurpose::Pin => Special("pin"), _ => Default, }, Some(overlay) => Special(overlay), diff --git a/src/resources.rs b/src/resources.rs index 7a048985..cfc3c3f8 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -93,6 +93,7 @@ static KEYBOARDS: &[(&'static str, &'static str)] = &[ // Others ("number/us", include_str!("../data/keyboards/number/us.yaml")), + ("pin/us", include_str!("../data/keyboards/pin/us.yaml")), // Terminal ("terminal/fr", include_str!("../data/keyboards/terminal/fr.yaml")), diff --git a/tests/meson.build b/tests/meson.build index 6db349f5..d43fe9a8 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -100,6 +100,7 @@ foreach layout : [ # Block: Not languages. 'emoji/us', 'number/us', + 'pin/us', ] extra = [] if layout.startswith('emoji/')