Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
be299528
Commit
be299528
authored
Mar 16, 2015
by
Chris Pavlina
Committed by
Maciej Suminski
Mar 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for hotkey collisions when modifiers are used.
parent
900ecbae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
action_manager.cpp
common/tool/action_manager.cpp
+2
-2
No files found.
common/tool/action_manager.cpp
View file @
be299528
...
...
@@ -116,13 +116,13 @@ bool ACTION_MANAGER::RunHotKey( int aHotKey ) const
HOTKEY_LIST
::
const_iterator
it
=
m_actionHotKeys
.
find
(
key
|
mod
);
// If no luck, try without
modifier, to handle keys that require a modifier
// If no luck, try without
Shift, to handle keys that require it
// e.g. to get ? you need to press Shift+/ without US keyboard layout
// Hardcoding ? as Shift+/ is a bad idea, as on another layout you may need to press a
// different combination
if
(
it
==
m_actionHotKeys
.
end
()
)
{
it
=
m_actionHotKeys
.
find
(
key
);
it
=
m_actionHotKeys
.
find
(
key
|
(
mod
&
~
MD_SHIFT
)
);
if
(
it
==
m_actionHotKeys
.
end
()
)
return
false
;
// no appropriate action found for the hotkey
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment