-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
We should be able to disable tool shortcuts #2649
Comments
Reply: Message: We can add a classVariable, "IsEnable" to GTSpotter and change the action of the global shortcut to open it only if the variable is true. |
Reply: Message: Aren't global keybindings managed by a key mapper or something like that ? |
Reply: Message: With the shortcut we can remove the shortcut but if we want to revert the change we have to reset KMRepository. |
Reply: Message: By the way, how do you plan to disable the other shortcuts (e.g. Nautilus (CMD + O + N)) anyway. Vincent Blondeau & Thibault Raffaillac |
Reply: Message: Hi, Actually to disable GTSpotter shortcuts you need to remove the corresponding entry from KMRepository default grlobalCategories So : You can also disable GTSpotter shurtcuts using ... a shortcut :) GTSpotterGlobalShortcuts >>keymapDisable and another method in ToolShortcutsCategory to enable it back. someThing like : ToolShortcutsCategory >>enableGTSpotterGlobalShortcut then, of Course, resetting KMRepository for the changes to take effect : Or just executing : KMRepository default globalCategories removeAll. Then GTSpotter shortcuts are disabled. Hope it helps. Abdelghani |
Reply: Message: As @abdelghani pointed out, I think this is not a Spotter specific issue. Either we make this issue more generic and work on a new mechanism, or we close it. What do you think? |
Reply: Message: +1 for close it. |
Reply: Message: We close it for now. |
Reply: Message: reopen. enable/disable a tool is not about how good is our shortcut mechanism, is about enabling and disabling tools. As I said in list... also remove the shortcut would be an incomplete disable because we need also to remove the worldmenu entry. so, better implement a enable setting as all other GTTools than waiting for a perfect solution that we don't know when will arrive (and that is also not a complete answer). |
Reply: Message: It is important to be able to remove tools from the top level, but doing it at the Spotter level is not really useful because Spotter is not the only tool that is registered globally. We have about 8 more other shortcuts. There is no point in single-ing out only one tool because it will not solve the original problem of deploying a desktop application. Furthermore, the issue is that right now global shortcuts are described statically, so I do not know how a reliable disabling mechanism would look like given the current design of Keymapping. Please take a look at the shortcuts and propose a concrete solution. |
Reply: Message: not specific to Pharo5. --> Later |
To limit bug bankruptcy (see https://www.joelonsoftware.com/2012/07/09/software-inventory/) this issue has been automatically marked as stale because it has not had any activity in 6 months. It will be closed in 1 month if no further activity occurs. If this issue remains important to you, please comment to reactivate the issue. Thank you for your contributions.
|
Still relevent. |
Right now all shortcuts are hardcoded and handed by the world. This is a problem in apps like the Pharo launcher. We should probably rethink the world metaphore also. |
This is a pretty big "issue", not easily actionable, more like a big feature project. |
Migrated case from Manuscript.
Original case: https://pharo.fogbugz.com/f/cases/17041
Status: Work Needed
Project: GTools
Original Author: CyrilFerlicot
Date: 18 November 2015 12:42:22 pm
Description:
For now we cannot disable GTSpotter.
An easy way to disable it and an entry inside the settings should be added.
The text was updated successfully, but these errors were encountered: