Gesture bound to Shift+= doesn't trigger #203
Labels
No labels
amd
avatars
bug
builder
cannot-reproduce
crash
epic
feature
from-viewer
gl-removal
known-limitation
monitoring
parity
perf
platform
priority
critical
priority
high
priority
low
priority
medium
provenance
rendering
rt
status
in-progress
status
testing
status
up-next
triage
ui
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sky_line/Slipstream#203
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A gesture with the trigger key Shift + = does nothing when the key is pressed.
Likely cause (code read, not yet verified in-world)
The SDL keyboard translation gives the
=key a different KEY code from the one gestures store:indra/llwindow/llkeyboardsdl.cpp:91:mTranslateKeyMap[SDLK_EQUALS] = KEY_EQUALS;whereKEY_EQUALS = 0x91(indra_constants.h:96).llkeyboardsdl.cpp:112:mTranslateKeyMap[SDLK_PLUS] = '=';=/+key to'='(61). Gesture assets store the trigger key as'=', since they're made and shared across viewers.LLGestureMgr::triggerGesture(key, mask)(llgesturemgr.cpp:734) comparesgesture->mKey == keyexactly. Under SDL, pressing=arrives asKEY_EQUALS(0x91), so an=gesture never matches, with or without Shift.'='is probably affected too, e.g.control|alt|shift|=in menu_viewer.xml (the particle render-type toggle).To check
key/maskinLLViewerWindow::handleKey(thetriggerGesturecall, llviewerwindow.cpp ~3433) while pressing Shift+=, and compare with the gesture'smKey/mMask.SDLK_EQUALSto'='like the other viewers. Check whatKEY_EQUALSis meant for (numpad=?SDLK_KP_EQUALS) and whether anything relies on the current mapping: key bindings,LLKeyConflict, the keybinding preferences UI.mTranslateKeyMapagainst LL's Windows/mac tables for other punctuation keys that differ: `- , . / ; ' [ ] \ ``. Gestures and shortcuts on those keys would fail the same way.SDLK_EQUALS) plusMASK_SHIFT, notSDLK_PLUS, for Shift+= on the tester's layout. Non-US layouts may differ.Test
Gestures on
=, Shift+=, Ctrl+=,-,[,],;and/all fire.Ctrl+Alt+Shift+=toggles particles.