The problem probably is that there are a few options with your trigger. One of them is if it will fire when in enter query mode. Because you are in enter-query mode right now this switch should be true. Then it will work.
The default for the switch is false, so no trigger will fire in enter-query mode.