an option to disable hiding mouse cursor on typing in editor (IDEA-93637)

This commit is contained in:
Dmitry Batrak
2016-11-18 12:53:19 +03:00
parent 73550e88f4
commit 278e2336ab
2 changed files with 6 additions and 1 deletions
@@ -2034,7 +2034,10 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
restoreCaretRelativePosition();
}
if (!myIsViewer && EMPTY_CURSOR != null && EMPTY_CURSOR != myEditorComponent.getCursor()) {
if (!myIsViewer &&
!SystemInfo.isMac && // Mac case is handled separately (see ide.mac.hide.cursor.when.typing registry key)
Registry.is("ide.hide.cursor.when.typing") &&
EMPTY_CURSOR != null && EMPTY_CURSOR != myEditorComponent.getCursor()) {
myEditorComponent.setCursor(EMPTY_CURSOR);
}
}
@@ -191,6 +191,8 @@ ide.mac.alt.mnemonic.without.ctrl=true
ide.mac.alt.mnemonic.without.ctrl.description=Processes Alt-based shortcuts for mnemonics in addition to Ctrl+Alt-based shortcuts. Affect MacOS only.
ide.mac.fix.dialog.showing=false
ide.hide.cursor.when.typing=true
ide.hide.cursor.when.typing.description=Hides mouse cursor when typing in an editor (on Windows and Linux)
ide.mac.hide.cursor.when.typing=true
ide.mac.show.native.help=true
ide.mac.useNativeClipboard=false