mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
abort frequency input on ESC key
This commit is contained in:
parent
8036758857
commit
0191ed7ad6
|
|
@ -80,6 +80,10 @@ TuneableFrequencyDisplay.prototype.setupEvents = function() {
|
|||
};
|
||||
me.input.on('blur', submit).on('keyup', function(e){
|
||||
if (e.keyCode == 13) return submit();
|
||||
if (e.keyCode == 27) {
|
||||
me.input.hide();
|
||||
me.displayContainer.show();
|
||||
}
|
||||
});
|
||||
me.input.on('click', function(e){
|
||||
e.stopPropagation();
|
||||
|
|
|
|||
Loading…
Reference in a new issue