From a55870cd815d065acea099cf0baecaaf51aa1b16 Mon Sep 17 00:00:00 2001 From: MattUV Date: Wed, 20 Dec 2017 02:36:47 +0100 Subject: Adds an option to move cursor with right click in TextEdit Fixes #14832 - Added an option in the editor settings/cursor to make the cursor move with right click. - If the option is activated (true by default), a right click will move the cursor before displaying context menu. - If there is a selection, a right click on it will keep it selected, a right click outside it will unselect it. - The option is available in textEdit via an inspector property (or via GDScript): caret_moving_by_right_click - The option is available in the script editor and the shader editor via the editor settings - The documentation has been updated with the new property, and a few other entries in TextEdit.xml. --- doc/classes/TextEdit.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'doc/classes/TextEdit.xml') diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index 85cbeaaa0..ab722a24c 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -345,18 +345,28 @@ + If [code]true[/code] the caret (visual cursor) blinks. + Duration (in seconds) of a caret's blinking cycle. + If [code]true[/code] the caret displays as a rectangle. + If [code]false[/code] the caret displays as a bar. + + + If [code]true[/code] a right click moves the cursor at the mouse position before displaying the context menu. + If [code]false[/code] the context menu disregards mouse location. + If [code]true[/code] a right click displays the context menu. + If [code]true[/code] the line containing the cursor is highlighted. @@ -364,6 +374,7 @@ If [code]true[/code] read-only mode is enabled. Existing text cannot be modified and new text cannot be added. + If [code]true[/code] line numbers are displayed to the left of the text. @@ -419,16 +430,22 @@ Search from end to beginning. + Cuts (Copies and clears) the selected text. + Copies the selected text. + Pastes the clipboard text over the selected text (or at the cursor's position). + Erases the whole [TextEdit] text. + Selects the whole [TextEdit] text. + Undoes the previous action. -- cgit v1.2.3-70-g09d2