Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added danish layout

  • Loading branch information...
commit 9bae2d3d3905a6707cdcf63c60b1aa735c36041f 1 parent 1ff02be
@Mottie Mottie authored
View
4 README.markdown
@@ -72,6 +72,10 @@ Moved to the Wiki Pages: [Home][6] | [FAQ][7] | [Setup][8] | [Options][9] ( [Lay
Only the latest changes will be shown below, see the wiki log to view older versions.
+####Version 1.8.6a
+* Added a Danish keyboard layout, thanks to Torben Junker Kjær!
+* Changed the name of the Scandinavian keyboard layout to Swedish. Also thanks to Torben.
+
####Version 1.8.6
* Added `ui-keyboard-has-focus`
* This class is added to the keyboard when it opens
View
6 layouts.html
@@ -123,12 +123,12 @@
<option value="bengali" class="bengali-qwerty-2">Bengali (qwerty-2)</option>
<option value="bulgarian" class="bulgarian-qwerty">Bulgarian (qwerty)</option>
<option value="catalan" class="catalan-qwerty">Catalan (qwerty)</option>
-
+ <option value="danish" class="danish-qwerty">Danish (qwerty)</option>
<option value="german" class="german-qwertz-1">German (qwertz-1)</option>
<option value="german" class="german-qwertz-2">German (qwertz-2)</option>
<option value="russian" class="russian-qwerty">Russian (qwerty)</option>
- <option value="scandinavian" class="scandic-qwerty">Scandinavian (qwerty)</option>
- <option value="scandinavian" class="scandic-dvorak">Scandinavian (dvorak)</option>
+ <option value="swedish" class="swedish-qwerty">Swedish (qwerty)</option>
+ <option value="swedish" class="swedish-dvorak">Swedish (dvorak)</option>
<!--
<option value="" class=""></option>
View
34 layouts/danish.js
@@ -0,0 +1,34 @@
+/* Danish keyboard layouts
+ * contains layout: 'danish-qwerty'
+ *
+ * To use:
+ * Point to this js file into your page header: <script src="layouts/danish.js" type="text/javascript"></script>
+ * Initialize the keyboard using: $('input').keyboard({ layout: 'danish-qwerty' });
+ *
+ * license for this file: WTFPL
+ */
+
+/* qwerty by Torben Junker Kjær (jordbo.dk) - */
+$.keyboard.layouts['danish-qwerty'] = {
+ 'default' : [
+ "\u00a7 1 2 3 4 5 6 7 8 9 0 + \u0301 {b}",
+ "{tab} q w e r t y u i o p \u00e5 \u00a8",
+ "a s d f g h j k l \u00e6 \u00f8 ' {enter}",
+ "{shift} < z x c v b n m , . - {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ],
+ 'shift' : [
+ '\u00bd ! " # \u00a4 % & / ( ) = ? \u0300 {b}',
+ "{tab} Q W E R T Y U I O P \u00c5 ^",
+ "A S D F G H J K L \u00c6 \u00d8 * {enter}",
+ "{shift} > Z X C V B N M ; : _ {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ],
+ 'alt' : [
+ '\u00a7 1 @ \u00a3 $ 5 6 { [ ] } + | {b}',
+ '{tab} q w € r t y u i o p \u00e5 ~',
+ "a s d f g h j k l \u00e6 \u00f8 ' {enter}",
+ '{shift} \\ z x c v b n \u00b5 , . - {shift}',
+ '{accept} {alt} {space} {alt} {cancel}'
+ ]
+};
View
10 layouts/scandinavian.js → layouts/swedish.js
@@ -1,15 +1,15 @@
-/* Scandinavian keyboard layouts
- * contains layout: 'scandic-qwerty' & 'scandic-dvorak'
+/* Swedish keyboard layouts
+ * contains layout: 'swedish-qwerty' & 'swedish-dvorak'
*
* To use:
* Point to this js file into your page header: <script src="layouts/scandinavian.js" type="text/javascript"></script>
- * Initialize the keyboard using: $('input').keyboard({ layout: 'scandic-qwerty' });
+ * Initialize the keyboard using: $('input').keyboard({ layout: 'swedish-qwerty' });
*
* license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
*/
/* qwerty by Mika Perreri Korhonen (https://github.com/jouk0) - */
-$.keyboard.layouts['scandic-qwerty'] = {
+$.keyboard.layouts['swedish-qwerty'] = {
'default' : [
"\u00a7 1 2 3 4 5 6 7 8 9 0 + \u0301 {bksp}",
"{tab} q w e r t y u i o p \u00e5 \u0308",
@@ -34,7 +34,7 @@ $.keyboard.layouts['scandic-qwerty'] = {
};
/* dvorak - from http://www.ludd.luth.se/~torger/se_dvorak.html */
-$.keyboard.layouts['scandic-dvorak'] = {
+$.keyboard.layouts['swedish-dvorak'] = {
'default' : [
"\u00a7 1 2 3 4 5 6 7 8 9 0 + \u0301 {bksp}",
"{tab} \u00f6 \u00e5 \u00e4 p y f g c r l q \u00a8",
Please sign in to comment.
Something went wrong with that request. Please try again.