[Solved]Menu shortcut keys for arrows lazarus / 21-General ---------------------------------------------------------------------- bobonwhidbey · 2021-02-14 20:11 I want the user to have the ability to move a row of data in a string grid up or down; basically swapping rows. What fits in well with the rest of the UI is Ctrl-UpArrow and Ctrl-DownArrow as the appropriate keys for these functions. This is easy to achieve using the OnKeyUp event of a stringgrid: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.GridKeyUp(Sender: TObject; var Key: word; Shift: TShiftState);begin  if (ssCtrl in Shift) and (Key in [38, 40]) then // Up/Down        MoveUpDown(Key = 38);  I also want to user to be able to click on a dropdown menu to achieve this. Also easy.  What I CAN'T DO is assign any Ctrl-up/down arrows as a short-cut key for this menu action. Since the functionality has been obtained, all I need is the ability to have the menu up display "Ctrl- UpArrow" or better Ctrl-↑ in the appropriate place. It there a better UI for this function - one that is popularly used? e.g Ctrl-U ---------------------------------------------------------------------- lucamar · 2021-02-14 20:24 Quote from: bobonwhidbey on February 14, 2021, 09:11:58 pmWhat I CAN'T DO is assign any Ctrl-up/down arrows as a short-cut key for this menu action. Yes, you can. They don't appear in the pick list but you can just type in "Ctrl+Up" or "Ctrl+Down". Or use the selection dialog to set them by clicking the "..." button (see attached image). ---------------------------------------------------------------------- bobonwhidbey · 2021-02-14 21:30 Perfect