This commit is contained in:
2019-09-02 19:32:05 +02:00
parent e9eac2e94b
commit f29bd12757
14 changed files with 410 additions and 8 deletions

View File

@@ -4,10 +4,12 @@
private created: boolean;
private browser: BrowserMp;
private data: GlobalData;
public test: string;
constructor(title: string, globalData: GlobalData) {
this.title = title;
this.data = globalData;
this.test = "";
this.cefTitleCall = this.cefTitleCall.bind(this);
mp.events.add('cef_request_title', this.cefTitleCall);
@@ -15,6 +17,10 @@
this.cefCallback = this.cefCallback.bind(this);
mp.events.add('cef_inputhelper_sendvalue', this.cefCallback);
mp.events.add('submitText', (tmp) => {
this.test = tmp;
});
this.finish = this.finish.bind(this);
this.show = this.show.bind(this);
this.valueGetter = this.valueGetter.bind(this);
@@ -36,6 +42,7 @@
this.data.InInput = true;
this.created = true;
this.browser = mp.browsers.new('package://assets/html/inputhelper/index.html');
}
private finish() {
@@ -74,4 +81,7 @@
}
}
exports = InputHelper;
exports = InputHelper;