Adding soft katakana search option
This commit is contained in:
parent
25a8f4fb68
commit
5467ed11e1
@ -72,6 +72,7 @@ function getFormValues() {
|
||||
optsNew.activateOnStartup = $('#activate-on-startup').prop('checked');
|
||||
optsNew.enableAudioPlayback = $('#enable-audio-playback').prop('checked');
|
||||
optsNew.showAdvancedOptions = $('#show-advanced-options').prop('checked');
|
||||
optsNew.enableSoftKatakanaSearch = $('#enable-soft-katakana-search').prop('checked');
|
||||
|
||||
optsNew.holdShiftToScan = $('#hold-shift-to-scan').prop('checked');
|
||||
optsNew.selectMatchedText = $('#select-matched-text').prop('checked');
|
||||
@ -256,7 +257,9 @@ $(document).ready(() => {
|
||||
loadOptions().then(opts => {
|
||||
$('#activate-on-startup').prop('checked', opts.activateOnStartup);
|
||||
$('#enable-audio-playback').prop('checked', opts.enableAudioPlayback);
|
||||
$('#enable-soft-katakana-search').prop('checked', opts.enableSoftKatakanaSearch);
|
||||
$('#show-advanced-options').prop('checked', opts.showAdvancedOptions);
|
||||
|
||||
$('#hold-shift-to-scan').prop('checked', opts.holdShiftToScan);
|
||||
$('#select-matched-text').prop('checked', opts.selectMatchedText);
|
||||
$('#scan-delay').val(opts.scanDelay);
|
||||
|
@ -21,6 +21,7 @@ function sanitizeOptions(options) {
|
||||
const defaults = {
|
||||
activateOnStartup: true,
|
||||
enableAudioPlayback: true,
|
||||
enableSoftKatakanaSearch: true,
|
||||
showAdvancedOptions: false,
|
||||
selectMatchedText: true,
|
||||
holdShiftToScan: true,
|
||||
|
@ -31,6 +31,10 @@
|
||||
<label><input type="checkbox" id="enable-audio-playback"> Enable audio playback</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label><input type="checkbox" id="enable-soft-katakana-search"> Enable soft Katakana search</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label><input type="checkbox" id="show-advanced-options"> Show advanced options</label>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user