diff options
| author | Heinrich Schuchardt <[email protected]> | 2019-06-16 22:33:20 +0200 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2019-06-20 22:26:18 +0000 |
| commit | 3b435c1193fe6da3649fc041e99acd45e43fdada (patch) | |
| tree | e7e3b470fc9f03612b999a891e9bbe92017643f9 /lib | |
| parent | 3b2b2de8ee7b18b119f3ca96fcaefa7f72ba499c (diff) | |
efi_loader: console incorrectly advertised left logo key
Avoid to signal that the left logo key is pressed, when it is not.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/efi_loader/efi_console.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c index a04cbf678a7..6c8229da42a 100644 --- a/lib/efi_loader/efi_console.c +++ b/lib/efi_loader/efi_console.c @@ -481,10 +481,8 @@ void set_shift_mask(int mod, struct efi_key_state *key_state) key_state->key_shift_state |= EFI_LEFT_ALT_PRESSED; if (mod & 4) key_state->key_shift_state |= EFI_LEFT_CONTROL_PRESSED; - if (mod & 8) + if (!mod || (mod & 8)) key_state->key_shift_state |= EFI_LEFT_LOGO_PRESSED; - } else { - key_state->key_shift_state |= EFI_LEFT_LOGO_PRESSED; } } |
