Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Edit a layout #70

Closed
pilonscv opened this Issue · 8 comments

2 participants

@pilonscv

Hello my friend,

How can i remove the key "ñ" and add the key "~" from catalan layout?

Thanks a lot

@Mottie
Owner

Hi pilonscv!

In the catalan.js file, replace all instances of \u00f1 and \u00d1 with ~. You should end up with this:

$.keyboard.layouts['catalan-qwerty'] = {
    'default' : [
        "\u00ba 1 2 3 4 5 6 7 8 9 0 ' \u00a1 {bksp}",
        "{tab} q w e r t y u i o p \u0300 +",
        "a s d f g h j k l ~ \u0301 \u00e7 {enter}",
        "{shift} < z x c v b n m , . - {shift}",
        "{accept} {alt} {space} {alt} {cancel}"
    ],
    'shift' : [
        '\u00aa ! " \u00b7 $ % & / ( ) = ? \u00bf {bksp}',
        "{tab} Q W E R T Y U I O P \u0302 *",
        "A S D F G H J K L ~ \u0308 \u00c7 {enter}",
        "{shift} > Z X C V B N M ; : _ {shift}",
        "{accept} {alt} {space} {alt} {cancel}"
    ],
    'alt' : [
        '\\ \u007c @ # \u0303 5 \u00ac 7 8 9 0 \u0027 \u00a1 {bksp}',
        "{tab} q w \u20ac r t y u i o p [ ]",
        "a s d f g h j k l ~ { } {enter}",
        "{shift} \u007c z x c v b n m , . - {shift}",
        "{accept} {alt} {space} {alt} {cancel}"
    ],
    'alt-shift' : [
        '\u00aa ! " \u00b7 $ % & / ( ) = ? \u00bf {bksp}',
        "{tab} Q W E R T Y U I O P [ ]",
        "A S D F G H J K L ~ { } {enter}",
        "{shift} > Z X C V B N M ; : _ {shift}",
        "{accept} {alt} {space} {alt} {cancel}"
    ]
};
@pilonscv

Perfect my friend.

Can you tell how i put the "~" in a letter like this "ã" or "õ"

@Mottie
Owner

When you use the keyboard, make sure the useCombos option is true, then just type ~ and a and they should automatically be combined.

@pilonscv

The useCombos is set true but when i press "~" for example its show in the input "~"....

@Mottie
Owner

~ + a = ã

@pilonscv

Sorry i dont understand...

@Mottie
Owner

When you type in ~ followed by a vowel, like a.. the keyboard plugin automatically converts ~a into ã.

Copy this string → ~a ← then paste it into any keyboard demo:

@pilonscv

Ah ok, know it works... sorry... the error is mine

Thanks once again you can close the issue

@Mottie Mottie closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.