ipad iOS keyboard QWERTY layout
See original GitHub issueSorry about doing this in a issue, but I donβt see where I can do it elsewhere π Iβm creating an issue in this project because of its name, but the files inside it donβt indicate where I can put the following layout code. So I post it here, and I let you tell me where it can goes:
// ipad iOS QWERTY layout
const layout = {
default: [
'q w e r t y u i o p {bksp}',
'a s d f g h j k l {enter}',
'{shift} z x c v b n m , . {shift}',
'{alt} {smileys} {space} {altright} {downkeyboard}'
],
shift: [
'Q W E R T Y U I O P {bksp}',
'A S D F G H J K L {enter}',
'{shiftactivated} Z X C V B N M , . {shiftactivated}',
'{alt} {smileys} {space} {altright} {downkeyboard}'
],
alt: [
'1 2 3 4 5 6 7 8 9 0 {bksp}',
`@ # $ & * ( ) ' " {enter}`,
'{shift} % - + = / ; : ! ? {shift}',
'{default} {smileys} {space} {back} {downkeyboard}'
],
smileys: [
'π π π
π π π π π π π {bksp}',
`π π¬ π π π± πͺ π¬ π΄ π― {enter}`,
'π π π€£ π π π π‘ π₯ π π {shift}',
'{default} {smileys} {space} {altright} {downkeyboard}'
]
}
@import '../../assets/styles/variables';
/**
* hg-theme-default theme
*/
.simple-keyboard {
width: 750px;
margin: auto;
.hg-button {
display: inline-block;
flex-grow: 1;
cursor: pointer;
}
.hg-row {
display: flex;
&:not(:last-child) {
margin-bottom: $keyboard-margins;
}
.hg-button:not(:last-child) {
margin-right: $keyboard-margins;
}
&:nth-child(2) {
margin-left: 18px;
}
}
&.hg-theme-default {
background-color: rgba(0, 0, 0, 0.1);
padding: 5px;
border-radius: 5px;
&.hg-layout-custom {
background-color: $keyboard-background-color;
padding: 5px;
}
.hg-button {
border-radius: 5px;
box-sizing: border-box;
padding: 0;
background: white;
border-bottom: 1px solid #b5b5b5;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: none;
font-weight: 400;
font-size: 20px;
max-width: 60px;
min-width: 60px;
height: 60px;
min-height: 60px;
&:active,
&:focus {
background: #e4e4e4;
}
&.hg-functionBtn {
background-color: $keyboard-button-action-color;
}
&.hg-button-space,
&.hg-button-shift,
&.hg-button-shiftactivated {
background-color: #ffffff;
}
}
.hg-button-space {
max-width: 448px;
min-width: 448px;
}
.hg-button-enter {
max-width: 110px;
min-width: 110px;
}
.hg-button-altright,
.hg-button-back {
min-width: 80px;
max-width: 80px;
}
}
}
All sizes are fixed in order to have a better design, but can be readapted following the needs.
And the key press logic:
const isFunctionButton = names => button => [...names].includes(button)
const isShiftButton = isFunctionButton(['{shift}', '{shiftactivated}'])
const isAltButton = isFunctionButton(['{alt}', '{altright}'])
const isSmileysButton = isFunctionButton(['{smileys}'])
const isDefaultButton = isFunctionButton(['{default}'])
Here is what it looks:
Is there a place where all keyboards are organised by layout or by language? For example: where I can find the layout iPad iOS QWERTY or AZERTY? Idem for iOS devices, Android, etc.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:12
Top Results From Across the Web
How to Change the Keyboard Layout in iOS - OSXDaily
Changing the Keyboard Layout to QWERTY, AZERTY, QWERTZ in iOS Β· Open Settings, then go to βGeneralβ followed by βKeyboardsβ Β· Tap on...
Read more >Switch Between QWERTY, AZERTY & QWERTZ Keyboard ...
Here's a complete step by step guide on how to switch between iPhone and iPad keyboard layouts - QWERTY, AZERTY and QWERTZ.
Read more >How to change the keyboard layout of your iOS device
In the Settings app, navigate to General > Keyboard > Keyboards, then tap on the keyboard for which you want to change the...
Read more >Choose an alternative layout for Magic Keyboard with iPhone
Go to Settings > General > Keyboard > Hardware Keyboard. Tap a language at the top of the screen, then choose an alternative...
Read more >iOS 16 Features an All-New iPhone Keyboard Layout Option
iOS 16 adds native support for the Dvorak keyboard layout on the iPhone, providing users with an alternative to the standard QWERTY layout....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry for the delay, somehow Iβm not able to getting this to work on a sandbox - If you have time, could you edit this sandbox and add in your changes?
If you donβt have time - I could give it a try soon, just got my hands tied atm π Iβll be closing this in the meantime.
Regards, Francisco Hodge
Sorry I didnβt gave you the full code! Iβve developed the entire behaviour (single tap and double tap on shift, reverting to lowercase if shift is not locked, etc.). Here is the full code (using
react-simple-keyboard
):