-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Bookmark comment shortcuts (issue #2055)
Added the registrations for the editor shortcuts and reorganized the registration calls into events and handlers. Needed a way to select which of the possibly multiple editors sees the effects of the keyboard so a pointer to the current text editor in use was added to the view bookmarks class. The pointer may be empty so the shortcuts need to check it before using it. To detect which of the editors needs to see the effects of the shortcuts a function ws added to text editor that tells if window has focus. To avoid errors when editors become read only, asserts were exchanged with do-nothing early returns on the text editor. To avoid using the default language coloring (HLSL), the colorize enabling variable was set to false. A suggestion by cppcheck simplified the logic of a conditional on view bookmarks. On view pattern editor some icons were added to console menu entries.
- Loading branch information
Showing
5 changed files
with
381 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.