Commit
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user