diff --git a/atom/common/native_mate_converters/blink_converter.cc b/atom/common/native_mate_converters/blink_converter.cc index e63534820f06..0ae73e9825c8 100644 --- a/atom/common/native_mate_converters/blink_converter.cc +++ b/atom/common/native_mate_converters/blink_converter.cc @@ -324,7 +324,7 @@ v8::Local Converter::ToV8( const blink::WebContextMenuData::InputFieldType& in) { switch (in) { case blink::WebContextMenuData::InputFieldTypePlainText: - return mate::StringToV8(isolate, "plain-text"); + return mate::StringToV8(isolate, "plainText"); case blink::WebContextMenuData::InputFieldTypePassword: return mate::StringToV8(isolate, "password"); case blink::WebContextMenuData::InputFieldTypeOther: diff --git a/atom/common/native_mate_converters/ui_base_types_converter.h b/atom/common/native_mate_converters/ui_base_types_converter.h index ac2920fcea4a..ad3390566c88 100644 --- a/atom/common/native_mate_converters/ui_base_types_converter.h +++ b/atom/common/native_mate_converters/ui_base_types_converter.h @@ -22,7 +22,7 @@ struct Converter { case ui::MENU_SOURCE_TOUCH: return mate::StringToV8(isolate, "touch"); case ui::MENU_SOURCE_TOUCH_EDIT_MENU: - return mate::StringToV8(isolate, "touch-menu"); + return mate::StringToV8(isolate, "touchMenu"); default: return mate::StringToV8(isolate, "none"); } diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 17cc31cf232d..2a955399b4d4 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -358,10 +358,10 @@ was invoked on. * `frameCharset` String - The character encoding of the frame on which the menu was invoked. * `inputFieldType` String - If the context menu was invoked on an input -field, the type of that field. Possible values are `none`, `plain-text`, +field, the type of that field. Possible values are `none`, `plainText`, `password`, `other`. * `menuSourceType` String - Input source that invoked the context menu. -Can be `none`, `mouse`, `keyboard`, `touch`, `touch-menu`. +Can be `none`, `mouse`, `keyboard`, `touch`, `touchMenu`. Emitted when there is a new context menu that needs to be handled.