mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2025-12-31 00:10:44 -06:00
Feature/keybindings (#1708)
* Add action manager to handle actions in replacement of keyboard shortcuts * Implement new Action concept * Remove the shortcutscomponent as it is no longer needed * Update profile version from 1.0 to 1.1 * Add action dialog * Restructure of key specification in keys.h * Remove solid field-of-view keybind from the newhorizons profile as the setting no longer exists
This commit is contained in:
@@ -79,10 +79,6 @@ openspace.rebindKey = function(oldKey, newKey)
|
||||
local t = openspace.getKeyBinding(oldKey)
|
||||
openspace.clearKey(oldKey)
|
||||
for _, v in pairs(t) do
|
||||
if v["Remote"] then
|
||||
openspace.bindKey(newKey, v["Command"])
|
||||
else
|
||||
openspace.bindKeyLocal(newKey, v["Command"])
|
||||
end
|
||||
openspace.bindKey(newKey, v)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user