Mercurial > vim
comparison src/gui_gtk_x11.c @ 29393:9fed09b3ca05 v9.0.0039
patch 9.0.0039: not all systems have GDK_KEY_dead_circumflex
Commit: https://github.com/vim/vim/commit/4c99e622ddd1cc0527262fda3b93e8e70f017371
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 4 19:58:17 2022 +0100
patch 9.0.0039: not all systems have GDK_KEY_dead_circumflex
Problem: Not all systems have GDK_KEY_dead_circumflex. (Hisashi T Fujinaka)
Solution: Add an #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 04 Jul 2022 21:00:02 +0200 |
parents | 5f2d86ec61eb |
children | 722cd5d0f92a |
comparison
equal
deleted
inserted
replaced
29392:86e54c1f931e | 29393:9fed09b3ca05 |
---|---|
1244 break; | 1244 break; |
1245 } | 1245 } |
1246 } | 1246 } |
1247 } | 1247 } |
1248 | 1248 |
1249 #ifdef GDK_KEY_dead_circumflex | |
1249 // Belgian Ctrl+[ workaround | 1250 // Belgian Ctrl+[ workaround |
1250 if (len == 0 && key_sym == GDK_KEY_dead_circumflex) | 1251 if (len == 0 && key_sym == GDK_KEY_dead_circumflex) |
1251 { | 1252 { |
1252 string[0] = CSI; | 1253 string[0] = CSI; |
1253 string[1] = KS_MODIFIER; | 1254 string[1] = KS_MODIFIER; |
1257 add_to_input_buf(string, len); | 1258 add_to_input_buf(string, len); |
1258 // workaround has to return here, otherwise our fake string[] entries | 1259 // workaround has to return here, otherwise our fake string[] entries |
1259 // are confusing code downstream | 1260 // are confusing code downstream |
1260 return TRUE; | 1261 return TRUE; |
1261 } | 1262 } |
1263 #endif | |
1262 | 1264 |
1263 if (len == 0) // Unrecognized key | 1265 if (len == 0) // Unrecognized key |
1264 return TRUE; | 1266 return TRUE; |
1265 | 1267 |
1266 // For some keys a shift modifier is translated into another key code. | 1268 // For some keys a shift modifier is translated into another key code. |