-
Notifications
You must be signed in to change notification settings - Fork 725
Open
Description
I see that we are able to set layout like this
jQuery.keyboard.layouts['Greek-custom'] = {
"lang": ["el"],
// Greek
"normal": [
"\\ 1 2 3 4 5 6 7 8 9 0 ' ] {bksp}",
"{tab} : w ε ρ τ υ θ ι ο π + }",
"α σ δ φ γ η ξ κ λ \u0384 \u00A8 # {enter}",
"{shift} < ζ χ ψ ω β ν μ , . - {shift}",
"{accept} {alt} {space} {alt} {cancel}"
],
"shift": [
"| ! \" # $ % & / ( ) = ? [ {bksp}",
"{tab} ; W Ε Ρ Τ Υ Θ Ι Ο Π Ş + }",
"Α Σ Δ Φ Γ Η Ξ Κ Λ \u00A8 \u0385 @ {enter}",
"{shift} < Ζ Χ Ψ Ω Β Ν Μ ; : _ {shift}",
"{accept} {alt} {space} {alt} {cancel}"
],
// latin characters
"alt": [
"\\ 1 2 3 4 5 6 7 8 9 0 ' ] {bksp}",
"{tab} q w e r t y u i o p + }",
"a s d f g h j k l \u0384 \u00A8 # {enter}",
"{shift} < z x c v b n m , . - {shift}",
"{accept} {alt} {space} {alt} {cancel}"
],
"alt-shift" : [
"| ! \" # $ % & / ( ) = ? [ {bksp}",
"{tab} Q W E R T Y U I O P * {",
"A S D F G H J K L \u00A8 \u0385 @ {enter}",
"{shift} > Z X C V B N M ; : _ {shift}",
"{accept} {alt} {space} {alt} {cancel}"
]
};
$('#keyboard').keyboard({
layout: 'Greek-custom',
});
Now i think i can define multiple languages like that
But can you add an option that users can select between defined layouts?
How can i achieve it?
Here an example of what i am talking
Moreover i see that you already have many layouts here : https://github.com/Mottie/Keyboard/tree/master/layouts
So how can i initialize the keyboard with multiple selectable layout is this possible?
And i want it to be activated by a button click rather than clicking on a textbox
