Skip to content

effects/hidecursor: only hide the cursor on visible keys

Jin Liu requested to merge work/genericity/hide-cursor-only-on-visible-key into master

Because functional keys (e.g., F1, Ctrl-C) are usually interleaved with mouse movements, we don't want to hide the cursor on these.

The code is based on the fact that all functional keys have a key code >= 0x01000000, which is evident in https://doc.qt.io/qt-6/qt.html#Key-enum but not explicitly stated.

Merge request reports

Loading