Compare commits
No commits in common. "b1f09524c9b31a5eab89f6b40371427d9f4e526e" and "c53223235ed02981c7233758a65c408902208d77" have entirely different histories.
b1f09524c9
...
c53223235e
@ -8,8 +8,7 @@ SOURCES=" page_data_loader.js factory.js uitypesdef.js utils.js uitype.js \
|
|||||||
floaticonbar.js miniform.js wterm.js dynamicaccordion.js \
|
floaticonbar.js miniform.js wterm.js dynamicaccordion.js \
|
||||||
binstreaming.js streaming_audio.js vadtext.js rtc.js docxviewer.js \
|
binstreaming.js streaming_audio.js vadtext.js rtc.js docxviewer.js \
|
||||||
llm_dialog.js llm.js websocket.js datarow.js tabular.js \
|
llm_dialog.js llm.js websocket.js datarow.js tabular.js \
|
||||||
line.js pie.js bar.js gobang.js period.js iconbarpage.js \
|
line.js pie.js bar.js gobang.js period.js iconbarpage.js "
|
||||||
keypress.js "
|
|
||||||
echo ${SOURCES}
|
echo ${SOURCES}
|
||||||
cat ${SOURCES} > ../dist/bricks.js
|
cat ${SOURCES} > ../dist/bricks.js
|
||||||
# uglifyjs --compress --mangle -- ../dist/bricks.js > ../dist/bricks.min.js
|
# uglifyjs --compress --mangle -- ../dist/bricks.js > ../dist/bricks.min.js
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
var bricks = window.bricks || {};
|
|
||||||
|
|
||||||
bricks.KeyTest = class extends bricks.VBox {
|
|
||||||
constructor(opts){
|
|
||||||
super(opts);
|
|
||||||
bricks.app.bind('keydown', this.key_handler.bind(this));
|
|
||||||
}
|
|
||||||
key_handler(event){
|
|
||||||
var key = event.key;
|
|
||||||
this.clear_widgets();
|
|
||||||
var w = new bricks.Text({text:'key press is:' + key});
|
|
||||||
this.add_widget(w)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bricks.Factory.register('KeyPress', bricks.KeyPress);
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user