if the switch is not working properly, I suspect the problem is with the contacts inside - so glue may not be the answer and could make it worse.
Bridging the switch would reliable keep it on.
either remove the switch from the circuit board and bridge out the tracks with solder, or (that is what I would do personally) open the switch (break it open) and bridge the contacts inside the (remnants of) the switch.
Both solutions have the possibility to cause damage - be warned