Fixed highlighted text not working on Mac.