mirror of https://github.com/buggins/dlangui.git
fix build error
This commit is contained in:
parent
bad404400f
commit
7312212914
|
@ -3203,7 +3203,7 @@ class FindPanel : HorizontalLayout {
|
||||||
_edFind.contentChange.connect(&onFindTextChange);
|
_edFind.contentChange.connect(&onFindTextChange);
|
||||||
|
|
||||||
_edFind.keyEvent = &onEditorKeyEvent;
|
_edFind.keyEvent = &onEditorKeyEvent;
|
||||||
_edReplaceFind.keyEvent = &onEditorKeyEvent;
|
_edReplace.keyEvent = &onEditorKeyEvent;
|
||||||
|
|
||||||
_btnFindNext = childById!Button("btnFindNext");
|
_btnFindNext = childById!Button("btnFindNext");
|
||||||
_btnFindNext.click = &onButtonClick;
|
_btnFindNext.click = &onButtonClick;
|
||||||
|
@ -3258,7 +3258,7 @@ class FindPanel : HorizontalLayout {
|
||||||
_editor.closeFindPanel();
|
_editor.closeFindPanel();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool onEditorKeyEvent(KeyEvent event) {
|
bool onEditorKeyEvent(Widget source, KeyEvent event) {
|
||||||
if (event.action == KeyAction.KeyDown && event.keyCode == KeyCode.ESCAPE) {
|
if (event.action == KeyAction.KeyDown && event.keyCode == KeyCode.ESCAPE) {
|
||||||
close();
|
close();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue