mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-10 19:16:20 +00:00
widget-shadow.js.
This commit is contained in:
parent
4ca28d0860
commit
29ca94e719
@ -51,6 +51,28 @@ var over = blessed.box({
|
|||||||
content: '{green-bg}{red-fg}{bold} --Drag Me-- {/}'
|
content: '{green-bg}{red-fg}{bold} --Drag Me-- {/}'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
over.key('left', function() {
|
||||||
|
over.left -= 2;
|
||||||
|
screen.render();
|
||||||
|
});
|
||||||
|
|
||||||
|
over.key('up', function() {
|
||||||
|
over.top -= 1;
|
||||||
|
screen.render();
|
||||||
|
});
|
||||||
|
|
||||||
|
over.key('right', function() {
|
||||||
|
over.left += 2;
|
||||||
|
screen.render();
|
||||||
|
});
|
||||||
|
|
||||||
|
over.key('down', function() {
|
||||||
|
over.top += 1;
|
||||||
|
screen.render();
|
||||||
|
});
|
||||||
|
|
||||||
|
over.focus();
|
||||||
|
|
||||||
screen.key('q', function() {
|
screen.key('q', function() {
|
||||||
return process.exit(0);
|
return process.exit(0);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user