Perform symbol lookup on button release
This commit is contained in:
parent
efbd2bbf18
commit
b55b3d71a8
@ -2194,12 +2194,6 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
|
|||||||
int row, col;
|
int row, col;
|
||||||
_get_mouse_pos(Point2i(mb->get_position().x, mb->get_position().y), row, col);
|
_get_mouse_pos(Point2i(mb->get_position().x, mb->get_position().y), row, col);
|
||||||
|
|
||||||
if (mb->get_command() && highlighted_word != String()) {
|
|
||||||
|
|
||||||
emit_signal("symbol_lookup", highlighted_word, row, col);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Toggle breakpoint on gutter click.
|
// Toggle breakpoint on gutter click.
|
||||||
if (draw_breakpoint_gutter) {
|
if (draw_breakpoint_gutter) {
|
||||||
int gutter = cache.style_normal->get_margin(MARGIN_LEFT);
|
int gutter = cache.style_normal->get_margin(MARGIN_LEFT);
|
||||||
@ -2368,6 +2362,14 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (mb->get_button_index() == BUTTON_LEFT) {
|
if (mb->get_button_index() == BUTTON_LEFT) {
|
||||||
|
if (mb->get_command() && highlighted_word != String()) {
|
||||||
|
int row, col;
|
||||||
|
_get_mouse_pos(Point2i(mb->get_position().x, mb->get_position().y), row, col);
|
||||||
|
|
||||||
|
emit_signal("symbol_lookup", highlighted_word, row, col);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dragging_minimap = false;
|
dragging_minimap = false;
|
||||||
dragging_selection = false;
|
dragging_selection = false;
|
||||||
can_drag_minimap = false;
|
can_drag_minimap = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user