diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-03-16 00:47:37 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-03-16 01:14:59 -0300 |
commit | 53e1694e1e2b76026d862e84c1de88f62601cbc3 (patch) | |
tree | 545ef1e271b6df173d0626db887c87c4f6bdf4ba /scene/gui | |
parent | 5b54361daf933e33d4b1545f14e2cebbd04d93ff (diff) |
New option to send canvas to render buffer
allows to use 3D environment effects for post processing such as Glow,
Bloom, HDR, etc. in 2D.
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/text_edit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 8855627bb4..e0bf4587bc 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -1345,7 +1345,7 @@ void TextEdit::_input_event(const InputEvent& p_input_event) { return; } - if (k.scancode==KEY_HOME) { + if (k.scancode==KEY_HOME && completion_index>0) { completion_index=0; completion_current=completion_options[completion_index]; @@ -1354,7 +1354,7 @@ void TextEdit::_input_event(const InputEvent& p_input_event) { return; } - if (k.scancode==KEY_END) { + if (k.scancode==KEY_END && completion_index<completion_options.size()-1) { completion_index=completion_options.size()-1; completion_current=completion_options[completion_index]; |