@@ -37,7 +37,7 @@ impl KeyboardLayout for Azerty {
37
37
KeyCode :: Key2 => {
38
38
if modifiers. is_shifted ( ) {
39
39
DecodedKey :: Unicode ( '2' )
40
- } else if modifiers. alt_gr {
40
+ } else if modifiers. is_altgr ( ) {
41
41
DecodedKey :: Unicode ( '~' )
42
42
} else {
43
43
DecodedKey :: Unicode ( 'é' )
@@ -46,7 +46,7 @@ impl KeyboardLayout for Azerty {
46
46
KeyCode :: Key3 => {
47
47
if modifiers. is_shifted ( ) {
48
48
DecodedKey :: Unicode ( '3' )
49
- } else if modifiers. alt_gr {
49
+ } else if modifiers. is_altgr ( ) {
50
50
DecodedKey :: Unicode ( '#' )
51
51
} else {
52
52
DecodedKey :: Unicode ( '"' )
@@ -55,7 +55,7 @@ impl KeyboardLayout for Azerty {
55
55
KeyCode :: Key4 => {
56
56
if modifiers. is_shifted ( ) {
57
57
DecodedKey :: Unicode ( '4' )
58
- } else if modifiers. alt_gr {
58
+ } else if modifiers. is_altgr ( ) {
59
59
DecodedKey :: Unicode ( '{' )
60
60
} else {
61
61
DecodedKey :: Unicode ( '\'' )
@@ -64,7 +64,7 @@ impl KeyboardLayout for Azerty {
64
64
KeyCode :: Key5 => {
65
65
if modifiers. is_shifted ( ) {
66
66
DecodedKey :: Unicode ( '5' )
67
- } else if modifiers. alt_gr {
67
+ } else if modifiers. is_altgr ( ) {
68
68
DecodedKey :: Unicode ( '[' )
69
69
} else {
70
70
DecodedKey :: Unicode ( '(' )
@@ -73,7 +73,7 @@ impl KeyboardLayout for Azerty {
73
73
KeyCode :: Key6 => {
74
74
if modifiers. is_shifted ( ) {
75
75
DecodedKey :: Unicode ( '6' )
76
- } else if modifiers. alt_gr {
76
+ } else if modifiers. is_altgr ( ) {
77
77
DecodedKey :: Unicode ( '|' )
78
78
} else {
79
79
DecodedKey :: Unicode ( '-' )
@@ -82,7 +82,7 @@ impl KeyboardLayout for Azerty {
82
82
KeyCode :: Key7 => {
83
83
if modifiers. is_shifted ( ) {
84
84
DecodedKey :: Unicode ( '7' )
85
- } else if modifiers. alt_gr {
85
+ } else if modifiers. is_altgr ( ) {
86
86
DecodedKey :: Unicode ( '`' )
87
87
} else {
88
88
DecodedKey :: Unicode ( 'è' )
@@ -91,7 +91,7 @@ impl KeyboardLayout for Azerty {
91
91
KeyCode :: Key8 => {
92
92
if modifiers. is_shifted ( ) {
93
93
DecodedKey :: Unicode ( '8' )
94
- } else if modifiers. alt_gr {
94
+ } else if modifiers. is_altgr ( ) {
95
95
DecodedKey :: Unicode ( '\\' )
96
96
} else {
97
97
DecodedKey :: Unicode ( '_' )
@@ -100,7 +100,7 @@ impl KeyboardLayout for Azerty {
100
100
KeyCode :: Key9 => {
101
101
if modifiers. is_shifted ( ) {
102
102
DecodedKey :: Unicode ( '9' )
103
- } else if modifiers. alt_gr {
103
+ } else if modifiers. is_altgr ( ) {
104
104
DecodedKey :: Unicode ( '^' )
105
105
} else {
106
106
DecodedKey :: Unicode ( 'ç' )
@@ -109,7 +109,7 @@ impl KeyboardLayout for Azerty {
109
109
KeyCode :: Key0 => {
110
110
if modifiers. is_shifted ( ) {
111
111
DecodedKey :: Unicode ( '0' )
112
- } else if modifiers. alt_gr {
112
+ } else if modifiers. is_altgr ( ) {
113
113
DecodedKey :: Unicode ( '@' )
114
114
} else {
115
115
DecodedKey :: Unicode ( 'à' )
@@ -118,7 +118,7 @@ impl KeyboardLayout for Azerty {
118
118
KeyCode :: OemMinus => {
119
119
if modifiers. is_shifted ( ) {
120
120
DecodedKey :: Unicode ( '°' )
121
- } else if modifiers. alt_gr {
121
+ } else if modifiers. is_altgr ( ) {
122
122
DecodedKey :: Unicode ( ']' )
123
123
} else {
124
124
DecodedKey :: Unicode ( ')' )
@@ -127,7 +127,7 @@ impl KeyboardLayout for Azerty {
127
127
KeyCode :: OemPlus => {
128
128
if modifiers. is_shifted ( ) {
129
129
DecodedKey :: Unicode ( '+' )
130
- } else if modifiers. alt_gr {
130
+ } else if modifiers. is_altgr ( ) {
131
131
DecodedKey :: Unicode ( '}' )
132
132
} else {
133
133
DecodedKey :: Unicode ( '=' )
@@ -228,7 +228,7 @@ impl KeyboardLayout for Azerty {
228
228
KeyCode :: Oem4 => {
229
229
if modifiers. is_shifted ( ) {
230
230
DecodedKey :: Unicode ( '¨' )
231
- } else if modifiers. alt_gr {
231
+ } else if modifiers. is_altgr ( ) {
232
232
DecodedKey :: Unicode ( 'ˇ' )
233
233
} else {
234
234
DecodedKey :: Unicode ( '^' )
@@ -237,7 +237,7 @@ impl KeyboardLayout for Azerty {
237
237
KeyCode :: Oem6 => {
238
238
if modifiers. is_shifted ( ) {
239
239
DecodedKey :: Unicode ( '£' )
240
- } else if modifiers. alt_gr {
240
+ } else if modifiers. is_altgr ( ) {
241
241
DecodedKey :: Unicode ( '¤' )
242
242
} else {
243
243
DecodedKey :: Unicode ( '$' )
0 commit comments