Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEBUG kbd mapping: umlauts slip through when hit while editable table cell is focused #13795

Draft
wants to merge 1 commit into
base: 2.4
Choose a base branch
from

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Oct 22, 2024

This adds some logging in order to debug
Keyboard shortcut “ö” stopped working (other umlauts affected, too)

Symptoms:

In the tracks view, certain special characters (äöüß) don't trigger the controls set in the kbd mapping if the focus is on editable cells. keyboardSearch() is called instead.

I don't understand how these keys can slip through KeyboardEventFilter::eventFilter.
IIUC QKeyEvents are processed like this:

  1. KeyboardEventFilter::eventFilter
    • checks if it's not modifier-only and if there is a mapping for the key
    • if yes: key event is consumed, control is triggered
  2. else WTrackTableView::keyPressEvent() is called
    • if it's a special key handled by us, respective function is called and returns
    • else QTableView::keyPressEvent() is called which might call
  3. QAbstractItemView::keyboardSearch(text) if the QKeyEvent::text() is not empty

Qt 5.15.13
keyboard layout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant