Browse Source

change all capture to force

main
familyfriendlymikey 2 years ago
parent
commit
c72dd86514
  1. 4
      app/components/app-community-links.imba
  2. 6
      app/components/app-edit.imba

4
app/components/app-community-links.imba

@ -75,8 +75,8 @@ tag app-community-links
result.push <> result.push <>
<.tip.noclick <.tip.noclick
@hotkey('down').capture.if(!state.loading)=increment_selection_index @hotkey('down').force=increment_selection_index
@hotkey('up').capture.if(!state.loading)=decrement_selection_index @hotkey('up').force=decrement_selection_index
> >
<.tip-hotkey> "Up/Down Arrow" <.tip-hotkey> "Up/Down Arrow"
<.tip-content> "Move Selection" <.tip-content> "Move Selection"

6
app/components/app-edit.imba

@ -38,7 +38,7 @@ tag app-edit
result.push <> result.push <>
<.tip <.tip
@click=handle_delete @click=handle_delete
@hotkey('shift+backspace').capture.if(!state.loading)=handle_delete @hotkey('shift+backspace').force=handle_delete
> >
<.tip-hotkey> "Shift + Backspace" <.tip-hotkey> "Shift + Backspace"
<.tip-content> "Delete Link" <.tip-content> "Delete Link"
@ -46,7 +46,7 @@ tag app-edit
result.push <> result.push <>
<.tip <.tip
@click=save @click=save
@hotkey('return').capture.if(!state.loading)=save @hotkey('return').force=save
> >
<.tip-hotkey> "Return" <.tip-hotkey> "Return"
<.tip-content> "Update Link" <.tip-content> "Update Link"
@ -60,7 +60,7 @@ tag app-edit
result.push <> result.push <>
<.tip <.tip
@click=close @click=close
@hotkey('esc').capture.if(!state.loading)=close @hotkey('esc').force=close
> >
<.tip-hotkey> "Esc" <.tip-hotkey> "Esc"
<.tip-content> "Cancel" <.tip-content> "Cancel"

Loading…
Cancel
Save