editor event handling and bp setting.