<commit_before>/**
 * @module
 * @prototype {Function} __keyboardHandler
 */

import { getOriginalEvent, pickInRange } from '../utils/index';
import { SmoothScrollbar } from '../smooth_scrollbar';

export { SmoothScrollbar };

// key maps [deltaX, deltaY]
const KEYMAPS = {
    37: [-1, 0], // left
    38: [0, -1], // up
    39: [1, 0], // right
    40: [0, 1] // down
};

/**
 * @method
 * @internal
 * Keypress event handler builder<commit_msg>add(keyboard): add space key handler<commit_after>/**
 * @module
 * @prototype {Function} __keyboardHandler
 */

import { getOriginalEvent, pickInRange } from '../utils/index';
import { SmoothScrollbar } from '../smooth_scrollbar';

export { SmoothScrollbar };

// key maps [deltaX, deltaY]
const KEYMAPS = {
    32: [0, 5],   // space
    37: [-1, 0],  // left
    38: [0, -1],  // up
    39: [1, 0],   // right
    40: [0, 1]    // down
};

/**
 * @method
 * @internal
 * Keypress event handler builder
{'fraction_non_alphanumeric': 0.1808622502628812, 'fraction_numerical': 0.03785488958990536, 'mean_word_length': 2.823293172690763, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '477198', 'n_tokens_mistral': 347, 'n_tokens_neox': 328, 'n_words': 95}