OSDN Git Service

fix QKeySequence encoding for certain keys
authorIvailo Monev <xakepa10@gmail.com>
Tue, 8 Dec 2020 11:20:52 +0000 (11:20 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Wed, 9 Dec 2020 05:01:56 +0000 (05:01 +0000)
commitb5dea11656585af880adc20f92926c27b3879f8c
tree425b8649a0e2d17b3d6880f5990e46b2fa924b65
parentbe9e8cd95327c2bd70ce51e08b5e2d01e161a58c
fix QKeySequence encoding for certain keys

the fallback for the case when the key is not found in the translated keys
table is the same as the one removed with this change anyway so the changes
done with this commit remove bad assumption about Qt::Key enum values,
deduplicates code and removes branch

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/global/qnamespace.h
src/gui/kernel/qkeysequence.cpp