Support for Greek keyboard layout
See original GitHub issueHi, I’d like to see support for Greek keyboard layout. My proposal below.
Greek alphabet contains letters with accent, diereza and accented diereza. I’m not Greek, but as far as I know this proposal contains all valid letters. I’ve added those specials to additional keyboard layout. Only downside of this approach is that {extras} (enabling extras layout) and {abc} (enabling default layout) buttons display with curly brackets. Defining them as [abc] or abc result in adding them to bound input field (maybe there’s something I’m doing wrong?).
export const greek = {
default: [
’ 1 2 3 4 5 6 7 8 9 0 - = {bksp}', '{tab} ; ς ε ρ τ υ θ ι ο π [ ] \\', '{lock} α σ δ φ γ η ξ κ λ ΄ \' {enter}', '{shift} < ζ χ ψ ω β ν μ , . / {shift}', '.com @ {space} ΅ ΄ · {extras}' ], shift: [ '~ ! @ # $ % ^ & * ( ) _ + {bksp}', ': ΅ Ε Ρ Τ Υ Θ Ι Ο Π { } |', '{lock} Α Σ Δ Φ Γ Η Ξ Κ Λ ¨ " {enter}', '{shift} > Ζ Χ Ψ Ω Β Ν Μ < > ? {shift}', '.com @ {space} ΅ ΄ · {extras}' ], extras: [ '
1 2 3 4 5 6 7 8 9 0 - = {bksp}',
‘ά έ ί ύ ό ώ’,
‘Ά Ώ Έ Ί Ύ Ό’,
‘ϊ ϋ ΅ ΄ · ΐ ΰ’,
‘{abc}’
]
};
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top GitHub Comments
Hey Francisco, I totally understand your POV. Especially when it takes to supporting effort. However having an optional “extra” button after space that will give you a 3rd layout might be a way out for the future. This is up to you to decide. I’m going back to my custom layouts when it comes to Polish and Greek keyboards.
Should you require any additional contact please do not hasitate.
Thank you again and regards
Hey @maciej-sielski, I understand your point. What I’m getting at is that I would like to work with the following constraints for these basic layouts:
This is what we currently have across the docs and the demos, and I would like to keep it like that. I failed to mention this in the docs so I apologize for that. I updated the how-to with the details.
I’m not really taking issue with what you’re saying here. It’s just that these constraints will keep the layouts consistent, be easier to follow and not require further docs or demos changes (For context: I spent a lot of time in the past weeks transferring and editing docs, and it was very time consuming. I would like to avoid major changes for now).
If you want, please feel free to edit the current Greek and Polish layouts, adding any missing keys in the 4 first rows. This will fit with the constraints laid out above.
You can use this sandbox for testing: https://codesandbox.io/s/zealous-hellman-m1s66?file=/src/index.js
Thanks, Francisco Hodge