@@ -129,7 +129,7 @@ impl KeyboardLayout for Azerty {
129129 KeyCode :: Tab => DecodedKey :: Unicode ( 0x09 . into ( ) ) ,
130130 KeyCode :: Q => {
131131 if map_to_unicode && modifiers. is_ctrl ( ) {
132- DecodedKey :: Unicode ( '\u{0011 }' )
132+ DecodedKey :: Unicode ( '\u{0001 }' )
133133 } else if modifiers. is_caps ( ) {
134134 DecodedKey :: Unicode ( 'A' )
135135 } else {
@@ -138,7 +138,7 @@ impl KeyboardLayout for Azerty {
138138 }
139139 KeyCode :: W => {
140140 if map_to_unicode && modifiers. is_ctrl ( ) {
141- DecodedKey :: Unicode ( '\u{0017 }' )
141+ DecodedKey :: Unicode ( '\u{001A }' )
142142 } else if modifiers. is_caps ( ) {
143143 DecodedKey :: Unicode ( 'Z' )
144144 } else {
@@ -244,7 +244,7 @@ impl KeyboardLayout for Azerty {
244244 }
245245 KeyCode :: A => {
246246 if map_to_unicode && modifiers. is_ctrl ( ) {
247- DecodedKey :: Unicode ( '\u{0001 }' )
247+ DecodedKey :: Unicode ( '\u{0011 }' )
248248 } else if modifiers. is_caps ( ) {
249249 DecodedKey :: Unicode ( 'Q' )
250250 } else {
@@ -324,7 +324,9 @@ impl KeyboardLayout for Azerty {
324324 }
325325 }
326326 KeyCode :: SemiColon => {
327- if modifiers. is_shifted ( ) {
327+ if map_to_unicode && modifiers. is_ctrl ( ) {
328+ DecodedKey :: Unicode ( '\u{000D}' )
329+ } else if modifiers. is_caps ( ) {
328330 DecodedKey :: Unicode ( 'M' )
329331 } else {
330332 DecodedKey :: Unicode ( 'm' )
@@ -341,7 +343,7 @@ impl KeyboardLayout for Azerty {
341343 KeyCode :: Enter => DecodedKey :: Unicode ( 10 . into ( ) ) ,
342344 KeyCode :: Z => {
343345 if map_to_unicode && modifiers. is_ctrl ( ) {
344- DecodedKey :: Unicode ( '\u{001A }' )
346+ DecodedKey :: Unicode ( '\u{0017 }' )
345347 } else if modifiers. is_caps ( ) {
346348 DecodedKey :: Unicode ( 'W' )
347349 } else {
@@ -394,9 +396,7 @@ impl KeyboardLayout for Azerty {
394396 }
395397 }
396398 KeyCode :: M => {
397- if map_to_unicode && modifiers. is_ctrl ( ) {
398- DecodedKey :: Unicode ( '\u{000D}' )
399- } else if modifiers. is_caps ( ) {
399+ if modifiers. is_caps ( ) {
400400 DecodedKey :: Unicode ( '?' )
401401 } else {
402402 DecodedKey :: Unicode ( ',' )
0 commit comments