diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 327713942fb..371f4c3089e 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -2739,7 +2739,14 @@ modify_event_symbol (symbol_num, modifiers, symbol_kind, name_table, | |||
| 2739 | if (NILP (*slot)) | 2739 | if (NILP (*slot)) |
| 2740 | { | 2740 | { |
| 2741 | /* No; let's create it. */ | 2741 | /* No; let's create it. */ |
| 2742 | *slot = intern (name_table[symbol_num]); | 2742 | if (name_table[symbol_num]) |
| 2743 | *slot = intern (name_table[symbol_num]); | ||
| 2744 | else | ||
| 2745 | { | ||
| 2746 | char buf[20]; | ||
| 2747 | sprintf (buf, "key-%d", symbol_num); | ||
| 2748 | *slot = intern (buf); | ||
| 2749 | } | ||
| 2743 | 2750 | ||
| 2744 | /* Fill in the cache entries for this symbol; this also | 2751 | /* Fill in the cache entries for this symbol; this also |
| 2745 | builds the Qevent_symbol_elements property, which the user | 2752 | builds the Qevent_symbol_elements property, which the user |