From 910c87bda0df9ce4107f6a318b99c2977b00e885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Fri, 28 May 2021 13:44:15 +0200 Subject: [PATCH] GUACAMOLE-1064: add Norwegian keyboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tested on top of Guacamole 1.3.0 The following works beyond a simple smoke-test: - æøå - \ - | - dead acute á - dead grave à - dead umlaut ö - dead cirumflex ê - dead tilde ~ --- src/protocols/rdp/Makefile.am | 1 + src/protocols/rdp/keymaps/no_no_qwerty.keymap | 76 +++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 src/protocols/rdp/keymaps/no_no_qwerty.keymap diff --git a/src/protocols/rdp/Makefile.am b/src/protocols/rdp/Makefile.am index e8ddfeb4..ce3b9eb0 100644 --- a/src/protocols/rdp/Makefile.am +++ b/src/protocols/rdp/Makefile.am @@ -238,6 +238,7 @@ rdp_keymaps = \ $(srcdir)/keymaps/hu_hu_qwertz.keymap \ $(srcdir)/keymaps/it_it_qwerty.keymap \ $(srcdir)/keymaps/ja_jp_qwerty.keymap \ + $(srcdir)/keymaps/no_no_qwerty.keymap \ $(srcdir)/keymaps/pt_br_qwerty.keymap \ $(srcdir)/keymaps/sv_se_qwerty.keymap \ $(srcdir)/keymaps/da_dk_qwerty.keymap \ diff --git a/src/protocols/rdp/keymaps/no_no_qwerty.keymap b/src/protocols/rdp/keymaps/no_no_qwerty.keymap new file mode 100644 index 00000000..5fbc126b --- /dev/null +++ b/src/protocols/rdp/keymaps/no_no_qwerty.keymap @@ -0,0 +1,76 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +parent "base" +name "no-no-qwerty" +freerdp "KBD_NORWEGIAN" + +# +# Basic keys +# + +map -caps -altgr -shift 0x29 0x02..0x0C ~ "|1234567890+" +map -caps -altgr -shift 0x10..0x1A ~ "qwertyuiopå" +map -caps -altgr -shift 0x1E..0x28 0x2B ~ "asdfghjkløæ'" +map -caps -altgr -shift 0x56 0x2C..0x35 ~ "ZXCVBNM;:_" + +map +caps -altgr -shift 0x29 0x02..0x0C ~ "|1234567890+" +map +caps -altgr -shift 0x10..0x1A ~ "QWERTYUIOPÅ" +map +caps -altgr -shift 0x1E..0x28 0x2B ~ "ASDFGHJKLØÆ'" +map +caps -altgr -shift 0x56 0x2C..0x35 ~ "zxcvbnm;:_" + +map -altgr -shift 0x0D ~ "\" + +# +# Keys requiring AltGr +# + +map +altgr -shift 0x03 ~ "@" +map +altgr -shift 0x04 ~ "£" +map +altgr -shift 0x05 ~ "$" +map +altgr -shift 0x08 ~ "{" +map +altgr -shift 0x09 ~ "[" +map +altgr -shift 0x0A ~ "]" +map +altgr -shift 0x0B ~ "}" +map +altgr -shift 0x56 ~ "\" + +map +altgr -shift 0x12 ~ "€" + +map +altgr -shift 0x0D ~ "|" +map +altgr -shift 0x32 ~ "µ" + +# +# Dead keys +# + +map +altgr -shift 0x0D ~ 0xFE51 # Dead acute +map -altgr +shift 0x0D ~ 0xFE50 # Dead grave +map -altgr -shift 0x1B ~ 0xFE57 # Dead umlaut +map -altgr +shift 0x1B ~ 0xFE52 # Dead circumflex +map +altgr -shift 0x1B ~ 0xFE53 # Dead tilde