# 🔥 Hotkeys-js Comprehensive Compatibility Test Suite

Test the compatibility of hotkeys-js library across different module formats and environments

0
Total Tests
0
Passed Tests
0
Failed Tests

## 📦 Module Format Compatibility Tests

Test loading and basic functionality of hotkeys-js library in different build formats

#### IIFE Format (hotkeys-js.min.js)

Immediately Invoked Function Expression, suitable for direct browser use

Press `F1` to test

Loading...

#### UMD Format (hotkeys-js.umd.cjs)

Universal Module Definition, compatible with CommonJS, AMD and global variables

Press `F2` to test

Loading...

#### ES Module Format (hotkeys-js.js)

Modern ES6 module format, requires server environment

Press `F3` to test

Loading...

## 🎯 Hotkey Functionality Tests

Test various hotkey combinations and functions

`Ctrl + K`
Basic hotkey test
`Alt + S`
Modifier key combination test
`Ctrl + Shift + T`
Multiple modifier keys test
`Esc`
Single key test
`Space`
Space key test
`Enter`
Enter key test

## 🔧 API Method Tests

Test various API methods provided by hotkeys-js

## 📋 Module Loading Details

## 📝 Usage Examples

### ESM Environment (Recommended)

    import hotkeys from 'hotkeys-js';

    hotkeys('ctrl+k', function(event, handler) {
      event.preventDefault();
      console.log('Hotkey pressed!');
    });

### CommonJS Environment

    const hotkeys = require('hotkeys-js');
    // or
    const hotkeys = require('hotkeys-js').default;

    hotkeys('ctrl+k', function(event, handler) {
      event.preventDefault();
      console.log('Hotkey pressed!');
    });

### Browser Global Environment

    <script src="hotkeys-js/dist/hotkeys-js.min.js"></script>
    <script>
      hotkeys('ctrl+k', function(event, handler) {
        event.preventDefault();
        console.log('Hotkey pressed!');
      });
    </script>