# getCurrentTextEditor on MacOSX ignores space in input

**URL:** <https://forum.juce.com/t/getcurrenttexteditor-on-macosx-ignores-space-in-input/48005>\
**Category:** MacOSX and iOS\
**Created:** [September 27, 2021, 10:38am UTC](https://forum.juce.com/t/getcurrenttexteditor-on-macosx-ignores-space-in-input/48005 "2021-09-27T10:38:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixout](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pixout/32/10969_2.png) [@pixout](https://forum.juce.com/u/pixout)\
**Post date:** [September 27, 2021, 10:38am UTC](https://forum.juce.com/t/getcurrenttexteditor-on-macosx-ignores-space-in-input/48005/1 "2021-09-27T10:38:06Z")

</div>

My AU Plugin works in REAPER.  
I’m using Label-\>getCurrentTextEditor() for editing label text and everything works normally on Windows, all alphanum characters and spaces are entered without any issues.  
But, On MacOSX when entering ‘space’ this character ignored and instead ‘Play’ button triggering in the REAPER background of my plugin window.

Is it possible that mentioned behavior happens due to the limitation of Keyboard type UIKeyboardTypeDefault?

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [September 27, 2021, 10:43am UTC](https://forum.juce.com/t/getcurrenttexteditor-on-macosx-ignores-space-in-input/48005/2 "2021-09-27T10:43:21Z")

</div>

In REAPER’s plugin options menu (the “+” button above the editor window) there’s an option to “Send all keyboard input to plugin”. You can click this to send spacebar presses to the plugin instead of to the REAPER main window.

---

<div class="post-metadata">

**Author:** ![pixout](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pixout/32/10969_2.png) [@pixout](https://forum.juce.com/u/pixout)\
**Post date:** [September 27, 2021, 10:46am UTC](https://forum.juce.com/t/getcurrenttexteditor-on-macosx-ignores-space-in-input/48005/3 "2021-09-27T10:46:05Z")

</div>

Wow, nice hint, Thanks a lot, it’s really strange to disable this option by default.
