Use special pin keyboard
This helps muscle memory
This commit is contained in:
20
data/keyboards/pin/us.yaml
Normal file
20
data/keyboards/pin/us.yaml
Normal 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"
|
||||
|
||||
@ -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),
|
||||
|
||||
@ -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")),
|
||||
|
||||
@ -100,6 +100,7 @@ foreach layout : [
|
||||
# Block: Not languages.
|
||||
'emoji/us',
|
||||
'number/us',
|
||||
'pin/us',
|
||||
]
|
||||
extra = []
|
||||
if layout.startswith('emoji/')
|
||||
|
||||
Reference in New Issue
Block a user