Detect Traps works in the dark and while blind
If you try to manually use Detect Traps in the dark or while blind, you get the messages "You can't see enough." and "Not while blind.", respectively. However, the search command can still discover traps.