File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 9
9
export let _onDescriptionKeyDown: (e : KeyboardEvent ) => void ;
10
10
export let type: " blocking" | " blockedBy" ;
11
11
export let accesskey: (key : string ) => string | null ;
12
+ export let accesskeyLetter: string = ' ' ;
12
13
13
14
const MAX_SEARCH_RESULTS = 20 ;
14
15
173
174
on:keydown ={(e ) => taskKeydown (e )}
174
175
on:focus ={onFocused }
175
176
on:blur ={() => inputFocused = false }
176
- accesskey ={accesskey (" b " )}
177
+ accesskey ={accesskey (accesskeyLetter )}
177
178
id =" {type }"
178
179
class =" input"
179
180
type =" text"
Original file line number Diff line number Diff line change 599
599
<!-- --------------------------------------------------------------------------- -->
600
600
<label for =" start" >Blocked B<span class =" accesskey" >y</span ></label >
601
601
<Dependency type ="blockedBy" task ={task } editableTask ={editableTask } allTasks ={allTasks }
602
- _onDescriptionKeyDown={_onDescriptionKeyDown } accesskey ={accesskey } />
602
+ _onDescriptionKeyDown={_onDescriptionKeyDown } accesskey ={accesskey } accesskeyLetter = " y " />
603
603
604
604
<!-- --------------------------------------------------------------------------- -->
605
605
<!-- Blocking Tasks -->
606
606
<!-- --------------------------------------------------------------------------- -->
607
607
<label for =" start" class =" accesskey-first" >Blocking</label >
608
608
<Dependency type ="blocking" task ={task } editableTask ={editableTask } allTasks ={allTasks }
609
- _onDescriptionKeyDown={_onDescriptionKeyDown } accesskey ={accesskey } />
609
+ _onDescriptionKeyDown={_onDescriptionKeyDown } accesskey ={accesskey } accesskeyLetter = " B " />
610
610
{:else }
611
611
<div ><i >Blocking and blocked by fields are disabled when vault tasks is empty</i ></div >
612
612
{/if }
You can’t perform that action at this time.
0 commit comments