Skip to content

Duplicate Shortcut keys, and unable to assign shortcut keys #733

@CaptainHypertext

Description

@CaptainHypertext

Steps to reproduce this issue

  1. Go to Tools -> Preferences -> Shortcuts -> SQL Editing
  2. Notice there's two Undo's and two Redo's.
  3. Set shortcut keys for Undo and Redo. In my case, the first pair is Undo = Alt+BkSp and Redo = Shift+Alt+BkSp, and the second pair is Ctrl+Z and Ctrl+Y respectively. Can't remember what they were originally.

Current behavior

Both of the Undo's work, but neither of the Redo's work. Also, whenever I mess around in settings, I get this message in the log:

/* Could not apply SynEdit keystroke shortcut "Ctrl+Y" (or secondary: "") to ecRedo. Shortcut already exists. Please go to Tools > Preferences > Shortcuts to change this settings. */

I found and removed the other shortcut that was referencing Ctrl+Y, but it never fixed the issue and the message still appears.

Expected behavior

My shortcut keys should work, and there should only be one Undo and one Redo. If they are different, they should be labeled differently.

Possible solution

Don't know what the issue is here. But as an aside, I think these shortcuts should default to Ctrl+Z and Ctrl+Y, as it has become a standard across the software industry, including web browsers and OS's. I think it used to be "Delete Line", which is a shocking surprise when you're trying to get back lines that you lost from using Undo, totally wiping out whatever used to be in your Redo history. I'd say the buggy Undo and Redo behavior is one of my biggest gripes with HeidiSql, an otherwise brilliant and simple SQL client.

Environment

  • HeidiSQL version: 10.2.0.5669, 64 bit
  • Operating system: Windows 10, 64 bit

Thank you for your time :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    keyboardAffects usage with keyboard or shortcuts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions