UI: Temporarily Disable Apple-specific Text Modifier Support

Disable recently-added support for some Apple-specific key modifiers
when  editing UI text. Only until we can add support for same for text
objects, console, and text editor. Keeping consistent between areas.

Pull Request: https://projects.blender.org/blender/blender/pulls/108333
This commit is contained in:
Harley Acheson
2023-05-26 23:47:19 +02:00
committed by Harley Acheson
parent 93a2e5dbfa
commit 07dbdd01e8
2 changed files with 15 additions and 1 deletions

View File

@@ -3636,7 +3636,9 @@ static void ui_textedit_prev_but(uiBlock *block, uiBut *actbut, uiHandleButtonDa
*/
static eStrCursorJumpType ui_textedit_jump_type_from_event(const wmEvent *event)
{
#ifdef __APPLE__
/* TODO: Do not enable these Apple-specific modifiers until we also support them in
* text objects, console, and text editor to keep everything consistent - Harley. */
#if defined(__APPLE__) && 0
if (event->modifier & KM_OSKEY) {
return STRCUR_JUMP_ALL;
}

View File

@@ -34,6 +34,18 @@
#include "console_intern.h"
/* TODO: Text operations not yet supported for console:
* Mac KM_OSKEY-arrow to beginning/end of line
* Mac KM_OSKEY-backspace to start of line
* Mac KM_OSKEY-delete to end of line
* Text cursor insertion by mouse
* Mouse drag to select does not change text cursor position.
* Shift-ctrl-arrow to select word
* ctrl-x to copy to clipboard and delete.
* ctrl-a to select all
* ctrl-zshift-crtrl-z undo/redo
*/
/* -------------------------------------------------------------------- */
/** \name Utilities
* \{ */