Commit 1eb8d617 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(Fw32_register_hot_key): Don't try to register

hot key if w32_parse_hot_key returned nil.
parent b07a2d9c
......@@ -8233,7 +8233,7 @@ The return value is the hotkey-id if registered, otherwise nil. */)
key = w32_parse_hot_key (key);
if (NILP (Fmemq (key, w32_grabbed_keys)))
if (!NILP (key) && NILP (Fmemq (key, w32_grabbed_keys)))
/* Reuse an empty slot if possible. */
Lisp_Object item = Fmemq (Qnil, w32_grabbed_keys);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment