Make another attempt to get correct keyboard

This commit is contained in:
CheddarCrisp 2020-03-03 22:32:20 -05:00
parent 325c5b0fe1
commit e42f3656a9
2 changed files with 6 additions and 6 deletions

View file

@ -13,8 +13,8 @@
<div class="dialog"> <div class="dialog">
<div class="dialog-content"> <div class="dialog-content">
<label>Name<input type="text" bind:value={newCounter.title} use:focus/></label> <label>Name<input type="text" bind:value={newCounter.title} use:focus/></label>
<label>Initial Value<input type="number" inputmode="decimal" bind:value={newCounter.initialValue} /></label> <label>Initial Value<input type="text" inputmode="decimal" bind:value={newCounter.initialValue} /></label>
<label>Target<input type="number" inputmode="decimal" bind:value={newCounter.max} /></label> <label>Target<input type="text" inputmode="decimal" bind:value={newCounter.max} /></label>
<label>Save history<input type="checkbox" bind:checked={newCounter.saveHistory} /></label> <label>Save history<input type="checkbox" bind:checked={newCounter.saveHistory} /></label>
<button on:click={ () => { showAddDialog = false; } }>Cancel</button> <button on:click={ () => { showAddDialog = false; } }>Cancel</button>
<button class="ok" on:click={ add }>OK</button> <button class="ok" on:click={ add }>OK</button>

View file

@ -18,7 +18,7 @@
<div class="dialog"> <div class="dialog">
<div class="dialog-content"> <div class="dialog-content">
<h1>{ showIncrement ? "Add" : "Set" }</h1> <h1>{ showIncrement ? "Add" : "Set" }</h1>
<input class="dialog-value" type="number" inputmode="decimal" bind:value={ dialogValue } use:focus /> <input class="dialog-value" type="text" inputmode="decimal" bind:value={ dialogValue } use:focus />
<button on:click={ dialogCancel }>Cancel</button> <button on:click={ dialogCancel }>Cancel</button>
<button class="ok" on:click={ dialogDone }>OK</button> <button class="ok" on:click={ dialogDone }>OK</button>
</div> </div>
@ -28,8 +28,8 @@
<div class="dialog"> <div class="dialog">
<div class="dialog-content"> <div class="dialog-content">
<label>Name<input type="text" bind:value={editingCounter.title} use:focus/></label> <label>Name<input type="text" bind:value={editingCounter.title} use:focus/></label>
<label>Initial Value<input type="number" inputmode="decimal" bind:value={editingCounter.initialValue} /></label> <label>Initial Value<input type="text" inputmode="decimal" bind:value={editingCounter.initialValue} /></label>
<label>Target<input type="number" inputmode="decimal" bind:value={editingCounter.max} /></label> <label>Target<input type="text" inputmode="decimal" bind:value={editingCounter.max} /></label>
<label>Save history<input type="checkbox" bind:checked={editingCounter.saveHistory} /></label> <label>Save history<input type="checkbox" bind:checked={editingCounter.saveHistory} /></label>
<button on:click={ () => { showEditDialog = false; } }>Cancel</button> <button on:click={ () => { showEditDialog = false; } }>Cancel</button>
<button class="ok" on:click={ finishEdit }>OK</button> <button class="ok" on:click={ finishEdit }>OK</button>
@ -50,7 +50,7 @@ export let counterId;
$: counter = $counters.find(x => x.id == counterId); $: counter = $counters.find(x => x.id == counterId);
let dialogValue; let dialogValue = null;
let showIncrement; let showIncrement;
let showSet; let showSet;
let showEditDialog; let showEditDialog;