From 3bd0dffb71879e22921a7a9f2796bf9586123d42 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Sun, 27 Jun 1999 21:21:31 +0000 Subject: [PATCH] (read_key_sequence): Properly reinitialize fkey_map after translating thru Vkey_translation_map. After translating thru Vfunction_key_map, don't reset keytrans-start to 0. --- src/keyboard.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/keyboard.c b/src/keyboard.c index b1a41d106a4..78860dd6496 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -7490,8 +7490,10 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, fkey_start = fkey_end = t; fkey_map = Vfunction_key_map; - /* Do pass the results through key-translation-map. */ - keytran_start = keytran_end = 0; + /* Do pass the results through key-translation-map. + But don't retranslate what key-translation-map + has already translated. */ + keytran_end = keytran_start; keytran_map = Vkey_translation_map; goto replay_sequence; @@ -7607,7 +7609,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, /* Don't pass the results of key-translation-map through function-key-map. */ fkey_start = fkey_end = t; - fkey_map = Vkey_translation_map; + fkey_map = Vfunction_key_map; goto replay_sequence; } -- 2.39.2