Skip to content

Conversation

@micheldebree
Copy link
Collaborator

@micheldebree micheldebree commented Oct 5, 2020

Work in progress

Cursor keys in tables work only without modifiers,
so we can map up/down with modifiers to other functions

Fixes #71

Open issues:

  • up/down (arrows without modifier) in the song order overview now also triggers instrument up/down (arrows with Cmd modifier). Weird because the modifier is not pressed.
  • Assumes that the arrow keys are never layed out on the keyboard so that a modifier is needed to access them (see general issue below)

General issue:
There is a general issue with mapping keys for different keyboards; if the key I want to map happens to share the same key with another key, I have to use the modifier. For example the + key is above the = on my keyboard. So I have to map SDLK_EQUALS with modifier Shift. This doesn't work when the keyboard layout is different and the + key is somewhere else. This makes it almost impossible to map keys that share the same key.
Not sure if this is an SDL thing, or if it's the way we implemented key handling.

Cursor keys in tables work only without modifiers,
so we can map up/down with modifiers to other functions
@micheldebree micheldebree added bug Something isn't working macos Applies only to the macos version labels Oct 5, 2020
@micheldebree micheldebree removed the bug Something isn't working label Oct 6, 2020
@micheldebree micheldebree marked this pull request as draft October 9, 2020 09:44
@micheldebree micheldebree changed the title WIP: Cursor keys in tables without modifiers #71 Cursor keys in tables without modifiers #71 Oct 9, 2020
@TheRealLaxity
Copy link
Collaborator

Looks good!

Copy link
Collaborator

@TheRealLaxity TheRealLaxity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's amazing. :)

@micheldebree micheldebree marked this pull request as ready for review October 11, 2020 04:08
@micheldebree micheldebree merged commit 399f4e5 into master Oct 11, 2020
@micheldebree micheldebree deleted the bug/71-updown-keys-with-modifiers branch October 11, 2020 04:34
@micheldebree micheldebree added this to the xmas 2020 milestone Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

macos Applies only to the macos version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Arrow key navigation in tables seem to take precedence over keymappings for up/down instrument and command.

3 participants