(Fw32_register_hot_key): Don't try to register
hot key if w32_parse_hot_key returned nil.
This commit is contained in:
parent
b07a2d9cdb
commit
1eb8d617f0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue