mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
add button to reset CLI output history
This commit is contained in:
parent
0e0b7476d1
commit
5755604958
3 changed files with 9 additions and 0 deletions
|
@ -102,6 +102,11 @@ TABS.cli.initialize = function (callback) {
|
|||
});
|
||||
});
|
||||
|
||||
$('.tab-cli .clear').click(function() {
|
||||
self.outputHistory = "";
|
||||
$('.tab-cli .window .wrapper').empty();
|
||||
});
|
||||
|
||||
// Tab key detection must be on keydown,
|
||||
// `keypress`/`keyup` happens too late, as `textarea` will have already lost focus.
|
||||
textarea.keydown(function (event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue