Icon from toolbar opens only when holding mouse click for short period of time. When I click shortly (normal click), the menu does not show. Reproducible: Always Steps to Reproduce: 1. Add schemes icon to toolbar 2. Click it 3. Actual Results: When clicked it does not show/open. Expected Results: Show/open scheme menu from the toolbar icon when clicking normal (no click holding for period of time)
Confirmed. Arch Linux 64-bit Kate 16.04.2 KDE Frameworks 5.23.0 Qt 5.7 xcb wm
Still valid on kate 16.12.2. Seems like the button has an empty (or non-obvious) action assigned to it. When you click it fast this action gets triggered but nothing happens. If you long click on it then it shows the menu to select secondary items.
We should just need to set `[schemaMenu]->setDelayed(false);` As soon as I can figure out where to do it, I'll submit a patch...
This ia also the same for other actions such as: Tools > Indentation, Mode, Highlighting, Scripts. There is currently a discussion about a patch to fix this here: https://phabricator.kde.org/D13026
I've updated the patch to fix the other toolbar buttons that can show menus, too.
Git commit b099af9eb569f4c0765cc4bc1aa69adef8f97772 by Nathaniel Graham. Committed on 15/06/2018 at 23:16. Pushed by ngraham into branch 'master'. Make menu-bearing toolbar buttons show their menus with normal click rather than click-and-hold Summary: Fixes Kate/KWrite's menu-bearing toolbar buttons so that they all show their drop-down menus immediately when clicked, instead of requiring a click-and-hold (which is the normal Qt behavior for toolbar buttons with menus). Note: due to [[ https://bugs.kde.org/show_bug.cgi?id=344746 | a Breeze design choice ]], this patch has the effect of removing the downward-pointing arrow that lets you know that the toolbar button will open a menu. There's an open patch that changes that, though: D13064 FIXED-IN: 5.47 Test Plan: Added {nav Schema}, {nav Mode}, {nav Intentation}, {nav Bookmarks}, {nav Highlighting} and {nav Scripts} buttons to Kate's toolbar and clicked them. They all showed their drop-down menus immediately. Reviewers: #ktexteditor, #kate, dhaumann, cullmann Reviewed By: #ktexteditor, #kate, dhaumann Subscribers: hpereiradacosta, kwrite-devel, kde-frameworks-devel Tags: #kate, #frameworks Differential Revision: https://phabricator.kde.org/D13026 M +1 -0 src/mode/katemodemenu.h M +1 -0 src/schema/kateschema.h M +1 -0 src/script/katescriptaction.cpp M +1 -0 src/syntax/katehighlightmenu.h M +1 -0 src/utils/kateautoindent.cpp M +1 -0 src/utils/katebookmarks.cpp https://commits.kde.org/ktexteditor/b099af9eb569f4c0765cc4bc1aa69adef8f97772