rm sHasPermanentMenuKey;
(cherry picked from commit 2949d1862fdd1c99870a29acd36c63c383eadbac)