@@ -172,7 +172,7 @@ const await_pattern_init = (pattern) => {
172172 * A event factory for a bubbling and cancelable generic event.
173173 *
174174 * @param {string } name - The event name.
175- * @returns {Event } - Returns a blur event.
175+ * @returns {Event } - Returns a DOM event.
176176 */
177177const generic_event = ( name ) => {
178178 return new Event ( name , {
@@ -231,6 +231,20 @@ const focus_event = () => {
231231 } ) ;
232232} ;
233233
234+ const focusin_event = ( ) => {
235+ return new Event ( "focusin" , {
236+ bubbles : true ,
237+ cancelable : false ,
238+ } ) ;
239+ } ;
240+
241+ const focusout_event = ( ) => {
242+ return new Event ( "focusout" , {
243+ bubbles : true ,
244+ cancelable : false ,
245+ } ) ;
246+ } ;
247+
234248const input_event = ( ) => {
235249 return new Event ( "input" , {
236250 bubbles : true ,
@@ -293,6 +307,8 @@ export default {
293307 click_event : click_event ,
294308 change_event : change_event ,
295309 focus_event : focus_event ,
310+ focusin_event : focusin_event ,
311+ focusout_event : focusout_event ,
296312 input_event : input_event ,
297313 mousedown_event : mousedown_event ,
298314 mouseup_event : mouseup_event ,
0 commit comments