changeset 32817:329d12003f37

(widget-field-keymap, widget-text-keymap): Define the tool-bar map as nil, as for the menu-bar. Otherwise, we'll get duplicate tool-bar entries because we'll see the global ones on more than one path through keymaps.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 24 Oct 2000 12:27:45 +0000
parents f4923452ea45
children f915f46d067c
files lisp/wid-edit.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/wid-edit.el	Tue Oct 24 11:27:41 2000 +0000
+++ b/lisp/wid-edit.el	Tue Oct 24 12:27:45 2000 +0000
@@ -781,6 +781,7 @@
 (defvar widget-field-keymap
   (let ((map (copy-keymap widget-keymap)))
     (define-key map [menu-bar] nil)
+    (define-key map [tool-bar] nil)
     (define-key map "\C-k" 'widget-kill-line)
     (define-key map "\M-\t" 'widget-complete)
     (define-key map "\C-m" 'widget-field-activate)
@@ -792,7 +793,8 @@
 
 (defvar widget-text-keymap
   (let ((map (copy-keymap widget-keymap)))
-    (define-key map [menu-bar] 'nil)
+    (define-key map [menu-bar] nil)
+    (define-key map [tool-bar] nil)
     (define-key map "\C-a" 'widget-beginning-of-line)
     (define-key map "\C-e" 'widget-end-of-line)
     (set-keymap-parent map global-map)