diff options
| author | Michael Albinus | 2025-02-07 15:14:47 +0100 |
|---|---|---|
| committer | Michael Albinus | 2025-02-07 15:14:47 +0100 |
| commit | 0065c9dbb8fb7d2b802e8f9a327f33049afec4ad (patch) | |
| tree | b9e925f8630215c15858499d34205887e075ba87 /src | |
| parent | 8be3be7330953dd015df28369c1f071178248bb4 (diff) | |
| download | emacs-0065c9dbb8fb7d2b802e8f9a327f33049afec4ad.tar.gz emacs-0065c9dbb8fb7d2b802e8f9a327f33049afec4ad.zip | |
Suppress unneded events in special-event-map
* src/keyboard.c (keys_of_keyboard): Don't add ns-put-working-text
and ns-unput-working-text to Vspecial_event_map unless on NS port.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index e91bd3d68b4..2b904b64cbe 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -14014,10 +14014,12 @@ keys_of_keyboard (void) | |||
| 14014 | initial_define_lispy_key (Vspecial_event_map, "end-session", | 14014 | initial_define_lispy_key (Vspecial_event_map, "end-session", |
| 14015 | "kill-emacs"); | 14015 | "kill-emacs"); |
| 14016 | #endif | 14016 | #endif |
| 14017 | #ifdef HAVE_NS | ||
| 14017 | initial_define_lispy_key (Vspecial_event_map, "ns-put-working-text", | 14018 | initial_define_lispy_key (Vspecial_event_map, "ns-put-working-text", |
| 14018 | "ns-put-working-text"); | 14019 | "ns-put-working-text"); |
| 14019 | initial_define_lispy_key (Vspecial_event_map, "ns-unput-working-text", | 14020 | initial_define_lispy_key (Vspecial_event_map, "ns-unput-working-text", |
| 14020 | "ns-unput-working-text"); | 14021 | "ns-unput-working-text"); |
| 14022 | #endif | ||
| 14021 | /* Here we used to use `ignore-event' which would simple set prefix-arg to | 14023 | /* Here we used to use `ignore-event' which would simple set prefix-arg to |
| 14022 | current-prefix-arg, as is done in `handle-switch-frame'. | 14024 | current-prefix-arg, as is done in `handle-switch-frame'. |
| 14023 | But `handle-switch-frame is not run from the special-map. | 14025 | But `handle-switch-frame is not run from the special-map. |