mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[kbdbind] Assign values to default_keybinding every time. Refs #152
This commit is contained in:
parent
b9a648059b
commit
77c98ab2a4
@ -807,15 +807,13 @@ static struct default_kb *default_keybindings[] = {
|
||||
static int
|
||||
keybinding_is_default(struct keybinding *keybinding)
|
||||
{
|
||||
static struct default_kb default_keybinding = {
|
||||
{
|
||||
keybinding->kbd.key,
|
||||
keybinding->kbd.modifier
|
||||
},
|
||||
keybinding->action_id
|
||||
};
|
||||
static struct default_kb default_keybinding;
|
||||
struct default_kb *pos;
|
||||
|
||||
default_keybinding.kbd.key = keybinding->kbd.key;
|
||||
default_keybinding.kbd.modifier = keybinding->kbd.modifier;
|
||||
default_keybinding.action_id = keybinding->action_id;
|
||||
|
||||
for (pos = default_keybindings[keybinding->keymap_id]; pos->kbd.key; pos++)
|
||||
if (!memcmp(&default_keybinding, pos, sizeof(default_keybinding)))
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user