Fix modification of entries while enumerating
Consume event when setting a hotkey