Set last_key to -1 at init time
This commit is contained in:
parent
7e6975d7ea
commit
7209c54e91
1 changed files with 2 additions and 2 deletions
|
@ -326,12 +326,12 @@ grub_usb_keyboard_attach (grub_usb_device_t usbdev, int configno, int interfno)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
data->last_key = -1;
|
||||||
data->mods = 0;
|
data->mods = 0;
|
||||||
|
data->dead = 0;
|
||||||
|
|
||||||
grub_term_register_input_active ("usb_keyboard", &grub_usb_keyboards[curnum]);
|
grub_term_register_input_active ("usb_keyboard", &grub_usb_keyboards[curnum]);
|
||||||
|
|
||||||
data->dead = 0;
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue