Ver código fonte

Merge pull request #2747 from MarianoGnu/line_edit

Add <Select All>(Ctrl+A) shortcut to LineEdit. Fixes #1094
Juan Linietsky 9 anos atrás
pai
commit
ef6fab88be
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      scene/gui/line_edit.cpp

+ 3 - 0
scene/gui/line_edit.cpp

@@ -192,6 +192,9 @@ void LineEdit::_input_event(InputEvent p_event) {
 						}
 
 					} break;
+					case (KEY_A): { //Select All
+						select();
+					} break;
 					default: { handled=false;}
 				}