This fixes bug #37769.
* lisp/subr.el (global-set-key): Provide a non-nil DONT-DOWNCASE argument to
read-key-sequence.
* etc/NEWS: Add an entry for this change.
Note that this key binding will not work on MS-Windows systems if
'w32-scroll-lock-modifier' is non-nil.
+---
+** 'global-set-key', called interactively, now no longer downcases a
+key binding with an upper case letter - if you can type it, you can
+bind it.
+
\f
* Editing Changes in Emacs 27.1
that you make with this function."
(interactive
(let* ((menu-prompting nil)
- (key (read-key-sequence "Set key globally: ")))
+ (key (read-key-sequence "Set key globally: " nil t)))
(list key
(read-command (format "Set key %s to command: "
(key-description key))))))