Set last_key to -1 at init time

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-08-22 00:31:43 +02:00
parent 7e6975d7ea
commit 7209c54e91

View file

@ -326,12 +326,12 @@ grub_usb_keyboard_attach (grub_usb_device_t usbdev, int configno, int interfno)
return 0;
}
data->last_key = -1;
data->mods = 0;
data->dead = 0;
grub_term_register_input_active ("usb_keyboard", &grub_usb_keyboards[curnum]);
data->dead = 0;
return 1;
}