This is an archive of the discontinued LLVM Phabricator instance.

[LLDB][GUI] Add extra keys to text field
ClosedPublic

Authored by OmarEmaraDev on Aug 19 2021, 9:33 AM.

Details

Summary

This patch adds many new keys to the text field and implements new
behaviors as follows:

case KEY_HOME:
case KEY_CTRL_A:
  MoveCursorToStart();
case KEY_END:
case KEY_CTRL_E:
  MoveCursorToEnd();
case KEY_RIGHT:
case KEY_SF:
  MoveCursorRight();
case KEY_LEFT:
case KEY_SR:
  MoveCursorLeft();
case KEY_BACKSPACE:
case KEY_DELETE:
  RemovePreviousChar();
case KEY_DC:
  RemoveNextChar();
case KEY_EOL:
case KEY_CTRL_K:
  ClearToEnd();
case KEY_DL:
case KEY_CLEAR:
  Clear();

This patch also refactors scrolling to be dynamic at draw time for
easier handing.

Diff Detail

Event Timeline

OmarEmaraDev created this revision.Aug 19 2021, 9:33 AM
OmarEmaraDev requested review of this revision.Aug 19 2021, 9:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2021, 9:34 AM
OmarEmaraDev edited the summary of this revision. (Show Details)Aug 19 2021, 9:34 AM
clayborg accepted this revision.Aug 23 2021, 9:16 PM

Finally got to try this out. Works great.

This revision is now accepted and ready to land.Aug 23 2021, 9:16 PM
This revision was landed with ongoing or failed builds.Aug 23 2021, 9:17 PM
This revision was automatically updated to reflect the committed changes.