Fixed bug #15644: Replace magic numbers for shortcut_mode with class constants