Fix an issue with using the tablet shortcut key to select the layer from menu
Before this patch, the shortcut to select a layer from a menu
could not work properly for digital tablet users, possibly because tablet would send two consecutive events, causing the menu to be closed quickly after opening, this patch also checks if a menu to select a layer has already been created before creating the menu, as it seems that digital tablet users can continue to create menus even after it been created.
Edited by killy |0veufOrever