fix: enter handle scope when creating custom event (#22657)
fix: enter handle scope when creating custom event (#22657)


bpasero/electron,bpasero/electron,electron/electron,electron/electron,bpasero/electron,gerhardberger/electron,bpasero/electron,seanchas116/electron,seanchas116/electron,seanchas116/electron,gerhardberger/electron,electron/electron,seanchas116/electron,bpasero/electron,electron/electron,gerhardberger/electron,seanchas116/electron,gerhardberger/electron,bpasero/electron,bpasero/electron,gerhardberger/electron,electron/electron,gerhardberger/electron,electron/electron,seanchas116/electron,electron/electron,gerhardberger/electron