properly extract selection bounds in event hanlders
properly extract selection bounds in event hanlders

hholzgra/maposmatic,hholzgra/maposmatic,hholzgra/maposmatic,hholzgra/maposmatic,hholzgra/maposmatic