Skip to content

Commit

Permalink
Use CefDOMNode::FormControlType in CCefApp
Browse files Browse the repository at this point in the history
  • Loading branch information
Lpsd committed Nov 14, 2023
1 parent a29a0ba commit 051af14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/ceflauncher_DLL/CCefApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class CCefApp : public CefApp, public CefRenderProcessHandler
if (!node)
return;

if (node->GetType() == CefDOMNode::Type::DOM_NODE_TYPE_ELEMENT && !node->GetFormControlElementType().empty())
if (node->GetType() == CefDOMNode::Type::DOM_NODE_TYPE_ELEMENT && node->GetFormControlElementType() != CefDOMNode::FormControlType::DOM_FORM_CONTROL_TYPE_UNSUPPORTED)
{
auto message = CefProcessMessage::Create("InputFocus");
message->GetArgumentList()->SetBool(0, true);
Expand Down

0 comments on commit 051af14

Please sign in to comment.