nakst / gf

A GDB frontend for Linux.
MIT License
1.82k stars 61 forks source link

Implement copy watch value to clipboard, keyboard shortcut #100

Closed cenomla closed 1 year ago

cenomla commented 1 year ago
nakst commented 1 year ago

Thank you for the pull request. Instead of registering this as a global keyboard shortcut, could you instead add this as a branch to the UI_MSG_KEY_TYPED section of WatchWindowMessage? The condition should be m->code == UI_KEYCODE_UP && !element->window->shift && !element->window->alt && element->window->ctrl && !w->textbox, then you can call into your function CommandWatchCopyValueToClipboard.