https://bugs.kde.org/show_bug.cgi?id=195749

Nikita Melnichenko <nikita+...@melnichenko.name> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://commits.kde.org/kru
                   |                            |sader/26c4b148a18bbd6ccce69
                   |                            |dd5dbbaf86a471f9cc5
             Status|CONFIRMED                   |RESOLVED

--- Comment #15 from Nikita Melnichenko <nikita+...@melnichenko.name> ---
Git commit 26c4b148a18bbd6ccce69dd5dbbaf86a471f9cc5 by Nikita Melnichenko.
Committed on 24/02/2018 at 05:50.
Pushed by melnichenko into branch 'master'.

KrViewer: reenforce QTabWidget shortcuts for tab switching

FIXED: [ 195749 ] Ctrl+Tab don't switch over edited files

Ctrl+Tab and Ctrl+Shift+Tab are actually default QTabWidget shortcuts
that are implemented via keyPressEvent method. When editor is placed on
a tab, it intercepts the key presses for itself. This is why KrViewer
understands the shortcuts fine if all tabs are Lister or other read-only
tabs. If there are Editor tabs, you can switch between tabs normally until
you hit an Editor tab and then it acts as Tab and Shift+Tab correspondingly.

This change enforces the shortcuts through
KActionCollection::setDefaultShortcuts which take precedence over
the editor shortcuts.

Differential Revision: https://phabricator.kde.org/D10734

M  +9    -3    krusader/KViewer/krviewer.cpp

https://commits.kde.org/krusader/26c4b148a18bbd6ccce69dd5dbbaf86a471f9cc5

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to