@@ -110,6 +110,18 @@ namespace Pantheon.Keyboard {
110110 korean_layouts_panel (),
111111 third_level_layouts_panel ()};
112112
113+ var alt_gr_label = new SettingsLabel (_(" AltGr behavior:" ), size_group[0 ]);
114+
115+ // AltGr key functionality
116+ modifier = new XkbModifier ();
117+ modifier. append_xkb_option (" " , _(" Default" ));
118+ modifier. append_xkb_option (" ctrl:ralt_rctrl" , _(" as Ctrl" ));
119+
120+ modifier. set_default_command (" " );
121+ settings. add_xkb_modifier (modifier);
122+
123+ var alt_gr_combo = new XkbComboBox (modifier, size_group[1 ]);
124+
113125 advanced_settings = new AdvancedSettings (panels);
114126
115127 entry_test = new Gtk .Entry () {
@@ -131,6 +143,8 @@ namespace Pantheon.Keyboard {
131143 attach (overlay_key_combo, 2 , 2 , 1 , 1 );
132144 attach (caps_lock_label, 1 , 3 , 1 , 1 );
133145 attach (caps_lock_combo, 2 , 3 , 1 , 1 );
146+ attach (alt_gr_label, 1 , 4 , 1 , 1 );
147+ attach (alt_gr_combo, 2 , 4 , 1 , 1 );
134148 attach (advanced_settings, 1 , 4 , 2 );
135149
136150 if (GLib . SettingsSchemaSource . get_default (). lookup (" io.elementary.wingpanel.keyboard" , true ) != null ) {
0 commit comments