Use special pin keyboard

This helps muscle memory
This commit is contained in:
Guido Günther
2021-11-30 14:01:57 +01:00
parent 5f40c31cab
commit 3513bf8de4
4 changed files with 23 additions and 1 deletions

View File

@ -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"

View File

@ -168,9 +168,9 @@ fn get_directory_string(
None => match content_purpose { None => match content_purpose {
ContentPurpose::Number => Special("number"), ContentPurpose::Number => Special("number"),
ContentPurpose::Digits => Special("number"), ContentPurpose::Digits => Special("number"),
ContentPurpose::Pin => Special("number"),
ContentPurpose::Phone => Special("number"), ContentPurpose::Phone => Special("number"),
ContentPurpose::Terminal => Special("terminal"), ContentPurpose::Terminal => Special("terminal"),
ContentPurpose::Pin => Special("pin"),
_ => Default, _ => Default,
}, },
Some(overlay) => Special(overlay), Some(overlay) => Special(overlay),

View File

@ -93,6 +93,7 @@ static KEYBOARDS: &[(&'static str, &'static str)] = &[
// Others // Others
("number/us", include_str!("../data/keyboards/number/us.yaml")), ("number/us", include_str!("../data/keyboards/number/us.yaml")),
("pin/us", include_str!("../data/keyboards/pin/us.yaml")),
// Terminal // Terminal
("terminal/fr", include_str!("../data/keyboards/terminal/fr.yaml")), ("terminal/fr", include_str!("../data/keyboards/terminal/fr.yaml")),

View File

@ -100,6 +100,7 @@ foreach layout : [
# Block: Not languages. # Block: Not languages.
'emoji/us', 'emoji/us',
'number/us', 'number/us',
'pin/us',
] ]
extra = [] extra = []
if layout.startswith('emoji/') if layout.startswith('emoji/')