Code

Disabled visual selection in keydef screen
authorJeffrey Middleton <jefromi@gmail.com>
Thu, 12 Mar 2009 14:41:56 +0000 (09:41 -0500)
committerJeffrey Middleton <jefromi@gmail.com>
Thu, 12 Mar 2009 14:41:56 +0000 (09:41 -0500)
If we someday have a command like "reset to default" we may want this
back, but for now, no commands have multiple-selection meanings on the
keydef screen.

src/screen_keydef.c

index c37d3f17659b6ed7c4365e0ebc920244da366e05..1ffee6b1659ad1fe01eb0ea86181992693ba8756 100644 (file)
@@ -300,6 +300,9 @@ keydef_cmd(G_GNUC_UNUSED mpdclient_t *c, command_t cmd)
        if (subcmd >= 0)
                length = subcmd_length;
 
+       if (cmd == CMD_LIST_VISUAL_SELECT)
+               return false;
+
        if (list_window_cmd(lw, length, cmd)) {
                keydef_repaint();
                return true;