- Updated app/integrated_crm_app.py, build.sh, conf/config.json - Added config.ini, schema.sql, send_email.py, test_db_conn.py - Added full wwwroot/ with bricks framework, all module frontends, login/main UI
19 lines
405 B
JavaScript
19 lines
405 B
JavaScript
var bricks = window.bricks || {};
|
|
|
|
bricks.KeyPress = class extends bricks.VBox {
|
|
constructor(opts){
|
|
super(opts);
|
|
bricks.app.bind('keydown', this.key_handler.bind(this));
|
|
}
|
|
key_handler(event){
|
|
var key = event.key;
|
|
if (!key) return;
|
|
this.clear_widgets();
|
|
var w = new bricks.Text({text:'key press is:' + key});
|
|
this.add_widget(w)
|
|
}
|
|
}
|
|
|
|
bricks.Factory.register('KeyPress', bricks.KeyPress);
|
|
|