Clear text selection when specific actions are done
This commit disables the text selection when highlighter is activated.
In addition to this, there are some places, where similar behaviour is to be expected but text is not cleared.
These includes:
- disabling area and table selections when any annotation is used
- Disabling text, area, and table selections when switching to normal browsing
- Disabling text, area, and table selections when switching to magnifier
- Disabling text, area, and table selections when switching to zoom
- make escape key properly clears active text selections (previously it only cleared area/table selections, this makes it consistent now)
Fixes BUG: 516490
Edited by Taufeeque Sifat