Cleanup: remove text editor 'select' option that did nothing
This commit is contained in:
parent
b800a05c55
commit
de47bf69da
Notes:
blender-bot
2023-02-14 11:24:03 +01:00
Referenced by issue #75580, Text Editor selection with Shift+LMB stopped working
|
@ -2347,8 +2347,7 @@ def km_text(params):
|
|||
("text.scroll", {"type": 'TRACKPADPAN', "value": 'ANY'}, None),
|
||||
("text.selection_set", {"type": 'EVT_TWEAK_L', "value": 'ANY'}, None),
|
||||
("text.cursor_set", {"type": 'LEFTMOUSE', "value": 'PRESS'}, None),
|
||||
("text.selection_set", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True},
|
||||
{"properties": [("select", True)]}),
|
||||
("text.selection_set", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True}, None),
|
||||
("text.scroll", {"type": 'WHEELUPMOUSE', "value": 'PRESS'},
|
||||
{"properties": [("lines", -1)]}),
|
||||
("text.scroll", {"type": 'WHEELDOWNMOUSE', "value": 'PRESS'},
|
||||
|
|
|
@ -1682,8 +1682,7 @@ def km_text(params):
|
|||
("text.scroll", {"type": 'TRACKPADPAN', "value": 'ANY'}, None),
|
||||
("text.selection_set", {"type": 'EVT_TWEAK_L', "value": 'ANY'}, None),
|
||||
("text.cursor_set", {"type": 'LEFTMOUSE', "value": 'PRESS'}, None),
|
||||
("text.selection_set", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True},
|
||||
{"properties": [("select", True)]}),
|
||||
("text.selection_set", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True}, None),
|
||||
("text.scroll", {"type": 'WHEELUPMOUSE', "value": 'PRESS'},
|
||||
{"properties": [("lines", -1)]}),
|
||||
("text.scroll", {"type": 'WHEELDOWNMOUSE', "value": 'PRESS'},
|
||||
|
|
|
@ -2902,7 +2902,6 @@ void TEXT_OT_scroll_bar(wmOperatorType *ot)
|
|||
* \{ */
|
||||
|
||||
typedef struct SetSelection {
|
||||
int selecting;
|
||||
int selc, sell;
|
||||
short mval_prev[2];
|
||||
wmTimer *timer; /* needed for scrolling when mouse at region bounds */
|
||||
|
@ -3244,7 +3243,6 @@ static int text_selection_set_invoke(bContext *C, wmOperator *op, const wmEvent
|
|||
|
||||
op->customdata = MEM_callocN(sizeof(SetSelection), "SetCursor");
|
||||
ssel = op->customdata;
|
||||
ssel->selecting = RNA_boolean_get(op->ptr, "select");
|
||||
|
||||
ssel->mval_prev[0] = event->mval[0];
|
||||
ssel->mval_prev[1] = event->mval[1];
|
||||
|
@ -3293,9 +3291,6 @@ void TEXT_OT_selection_set(wmOperatorType *ot)
|
|||
ot->modal = text_selection_set_modal;
|
||||
ot->cancel = text_selection_set_cancel;
|
||||
ot->poll = text_region_edit_poll;
|
||||
|
||||
/* properties */
|
||||
RNA_def_boolean(ot->srna, "select", 0, "Select", "Set selection end rather than cursor");
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
|
Loading…
Reference in New Issue