<commit_before>/**
 * @file
 *
 * @brief dialog which traps the focus (keyboard support)
 *
 * @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
 */

import React from 'react'
import FocusTrap from 'focus-trap-react'
import Dialog from 'material-ui/Dialog'

const FocusTrapDialog = ({ children, open, paused = false, onRequestClose, ...rest }) => (
  <Dialog open={open} onRequestClose={onRequestClose} {...rest}>
    <FocusTrap
      active={open}
      paused={paused}
      focusTrapOptions={{ escapeDeactivates: false, returnFocusOnDeactivate: false }}
    >
      {children}
    </FocusTrap>
  </Dialog>
)

export default FocusTrapDialog<commit_msg>web-ui: fix mouse usage in combination with focus trap<commit_after>/**
 * @file
 *
 * @brief dialog which traps the focus (keyboard support)
 *
 * @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
 */

import React from 'react'
import FocusTrap from 'focus-trap-react'
import Dialog from 'material-ui/Dialog'

const FocusTrapDialog = ({ children, open, paused = false, onRequestClose, ...rest }) => (
  <Dialog open={open} onRequestClose={onRequestClose} {...rest}>
    <FocusTrap
      active={open}
      paused={paused}
      focusTrapOptions={{ clickOutsideDeactivates: true, escapeDeactivates: false, returnFocusOnDeactivate: false }}
    >
      {children}
    </FocusTrap>
  </Dialog>
)

export default FocusTrapDialog
{'fraction_non_alphanumeric': 0.1295774647887324, 'fraction_numerical': 0.0, 'mean_word_length': 3.9685314685314683, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6818079', 'n_tokens_mistral': 437, 'n_tokens_neox': 435, 'n_words': 119}