That is strange. The F-15 has a Weight On Wheels (WOW) electrical switch that disables the landing gear handle while the aircraft is on the ground. That is the only aircraft I've ever worked on, but I would assume that would be a standard feature for a landing gear system. In fact, some "hotshot" pilots would even put the landing gear handle in the up position while on take-off roll so the gear would retract as soon as the aircraft left the runway. Obviously dangerous, but the point being the gear would not retract with when it detected weight placed on it.