isEnterLike property
bool
get
isEnterLike
Whether this key represents Enter/Return for input handling.
This includes the canonical KeyType.enter as well as terminals/parsers that report Enter as Ctrl+J (LF) or Ctrl+M (CR), which may appear when using the Ultraviolet key table.
Implementation
bool get isEnterLike =>
isEnter ||
this == Keys.ctrlJ ||
this == Keys.ctrlM ||
// Some parsers may deliver raw CR/LF as runes.
isRuneValue(Keys.lineFeed) ||
isRuneValue(Keys.carriageReturn);