fix focus problem in mac
utf-8 encode
add context menu support