fix build error

This commit is contained in:
Vadim Lopatin 2017-09-04 16:23:54 +03:00
parent bad404400f
commit 7312212914
1 changed files with 2 additions and 2 deletions

View File

@ -3203,7 +3203,7 @@ class FindPanel : HorizontalLayout {
_edFind.contentChange.connect(&onFindTextChange);
_edFind.keyEvent = &onEditorKeyEvent;
_edReplaceFind.keyEvent = &onEditorKeyEvent;
_edReplace.keyEvent = &onEditorKeyEvent;
_btnFindNext = childById!Button("btnFindNext");
_btnFindNext.click = &onButtonClick;
@ -3258,7 +3258,7 @@ class FindPanel : HorizontalLayout {
_editor.closeFindPanel();
}
bool onEditorKeyEvent(KeyEvent event) {
bool onEditorKeyEvent(Widget source, KeyEvent event) {
if (event.action == KeyAction.KeyDown && event.keyCode == KeyCode.ESCAPE) {
close();
return true;