Fix some old comments correctly
Imprement ime controlling sequence
+
Add events: {enable,disable}-focus-events
Minor fix
Style improvement