don't tab into the exponent selector input

This commit is contained in:
Jakob Ketterl 2021-03-31 01:28:38 +02:00
parent 3e00a4f390
commit 96cce831ef
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ FrequencyEditor.prototype.getInputHtml = function() {
return '<div class="input-group input-group-sm exponential-input" name="frequency">' +
'<input class="form-control form-control-sm" type="number" step="1">' +
'<div class="input-group-append">' +
'<select class="input-group-text exponent">' +
'<select class="input-group-text exponent" tabindex="-1">' +
$.map(FrequencyEditor.suffixes, function(v, k) {
// fix lowercase "kHz"
if (k === "K") k = "k";

View File

@ -375,7 +375,7 @@ class ExponentialInput(Input):
def render_input_group(self, value, errors):
append = """
<div class="input-group-append">
<select class="input-group-text exponent" name="{id}-exponent" {disabled}>
<select class="input-group-text exponent" name="{id}-exponent" tabindex="-1" {disabled}>
<option value="0" selected>{unit}</option>
<option value="3">k{unit}</option>
<option value="6">M{unit}</option>