pub enum InputContext {
Show 25 variants
Board,
BulkModal,
Triage,
Rollover,
Detail,
Form,
FormPicker,
ConfirmDelete,
MoveIntoDone,
ConfirmBlockedMove,
Help,
HelpSearch,
ContextMenu,
Filter,
FilterModal,
Settings,
SettingsPrompt,
PlanningManagement,
PlanningConfirm,
PlanningForm,
DatePicker,
Comment,
Asset,
EditWarning,
LinkPrompt,
}Variants§
Board
BulkModal
The batch modal (WP07). Its own context so a key means one thing there and
is not borrowed from the board’s — space marks a card in a batch and is not
a board action, and y confirms in a batch and is not a board action either.
Triage
The triage inbox and its decision modal (WP06, T029/T031).
Its own context for the reason BulkModal’s doc gives:
a/d/u/f decide here and would be board actions there, and the
inbox is keyboard-driven all the way down. It carries free text (a
decline reason, a duplicate target), so cancel is esc and only
esc — q stays a typeable letter for the same reason LinkPrompt
keeps it.
Rollover
Detail
Form
FormPicker
ConfirmDelete
MoveIntoDone
ConfirmBlockedMove
The blocked-move acknowledgement prompt (WP04). Its own context so the
command bar can advertise y/esc and nothing else.
Help
HelpSearch
The keybindings overlay’s / input line (tix #1496).
Its own context for the reason InputContext::Filter is one: it reads free
text. Keeping the list mode’s q/? bound to cancel here would rewrite them
to esc before the handler saw them, and a query could never contain a q —
the same trap the free-text modes below document.
ContextMenu
Filter
FilterModal
Settings
SettingsPrompt
PlanningManagement
PlanningConfirm
PlanningForm
DatePicker
Comment
Asset
EditWarning
LinkPrompt
The two-step create/edit relationship prompt (#1359).
Free text, so cancel is Esc and only Esc — see the note on the
Asset/Comment/Filter group for why binding q here would be a real
defect rather than a preference: a title fragment containing q is ordinary.
Implementations§
Trait Implementations§
Source§impl Clone for InputContext
impl Clone for InputContext
impl Copy for InputContext
Source§impl Debug for InputContext
impl Debug for InputContext
impl Eq for InputContext
Source§impl Hash for InputContext
impl Hash for InputContext
Source§impl PartialEq for InputContext
impl PartialEq for InputContext
impl StructuralPartialEq for InputContext
Auto Trait Implementations§
impl Freeze for InputContext
impl RefUnwindSafe for InputContext
impl Send for InputContext
impl Sync for InputContext
impl Unpin for InputContext
impl UnsafeUnpin for InputContext
impl UnwindSafe for InputContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more