MCPcopy
hub / github.com/tanelpoder/0xtools / main

Function main

xtop/tests/test_modal_enter_key_fix.py:83–106  ·  view source on GitHub ↗

Run the modal ENTER key propagation test

()

Source from the content-addressed store, hash-verified

81
82
83async def main():
84 """Run the modal ENTER key propagation test"""
85 print("=" * 60)
86 print("Modal ENTER Key Propagation Test")
87 print("=" * 60)
88
89 try:
90 result = await test_grouping_modal_enter_key()
91
92 if result:
93 print("\n" + "=" * 60)
94 print("✅ TEST PASSED: ENTER key propagation fix works correctly!")
95 print("The ENTER key in child modals no longer propagates to parent.")
96 print("=" * 60)
97 return 0
98 else:
99 print("\n❌ Test failed")
100 return 1
101
102 except Exception as e:
103 print(f"\n❌ Test failed with error: {e}")
104 import traceback
105 traceback.print_exc()
106 return 1
107
108
109if __name__ == "__main__":

Callers 1

Calls 1

Tested by

no test coverage detected