Skip to content

Commit a576096

Browse files
SPuntteeldruin
authored andcommitted
Add missing U+00B5 MICRO SIGN to Norwegian layout
1 parent bbb6f36 commit a576096

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/layouts/no105.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,17 @@ impl KeyboardLayout for No105Key {
177177
DecodedKey::Unicode('æ')
178178
}
179179
}
180+
KeyCode::M => {
181+
if map_to_unicode && modifiers.is_ctrl() {
182+
DecodedKey::Unicode('\u{000D}')
183+
} else if modifiers.is_altgr() {
184+
DecodedKey::Unicode('µ')
185+
} else if modifiers.is_caps() {
186+
DecodedKey::Unicode('M')
187+
} else {
188+
DecodedKey::Unicode('m')
189+
}
190+
}
180191
KeyCode::OemComma => {
181192
if modifiers.is_shifted() {
182193
DecodedKey::Unicode(';')

0 commit comments

Comments
 (0)