You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A little context to my situation to explain why I want to achieve what I'm asking here:
I'm a systems administrator, and our company uses iOS for our work devices (I know, such a shame). The majority of the day, I'm remoting into our client's workstations and servers. These are predominantly Windows machines. The keyboard shortcuts are a bit of a dilemma (cmd +c/v/z vs ctrl + c/v/z) because I'm copy and pasting things hundreds of times a day, and I haven't been able to find an effective way to maintain using the same keys on my work system in general, and on my work system when I'm remoted into a client's system.
I also ran into this issue with the delete key (I prefer it's functionality the way it's programmed in windows, so I've modified my configuration for hammerspoon to accomplish the same end result when remoted into a clients system and on my own work system). This solution works pretty much flawlessly and I have no issues deleting items the same way across the board. Here's the code for this functionality:
forwardDeleteHotkey = hs.hotkey.bind({}, "forwarddelete", function()
hs.eventtap.keyStroke({"cmd"}, "delete")
end)
appWatcher = hs.application.watcher.new(function(appName, eventType)
if appName == "Take Control Viewer for RMM" and eventType == hs.application.watcher.activated then
-- Deactivate hotkeys
forwardDeleteHotkey:disable()
elseif appName == "Take Control Viewer for RMM" and eventType == hs.application.watcher.deactivated then
-- Re-enable hotkeys
forwardDeleteHotkey:enable()
end
end)
appWatcher:start()
I'm attempting to sort of mimic this same concept, except for the cmd/ctrl + c/v/z keyboard shortcuts to copy, paste, and undo. The problem I'm running into is that although I've modified my iOS preferences to re-map my cmd key to my ctrl key (and vice versa), this is only effective on my machine, when I'm not remoted into a client system. When I am remoted into a windows system, the ctrl key behaves like the windows key (it's actually mapped to the cmd key), and the cmd key behaves like the ctrl key. I want my cmd key to revert back to the cmd key when I'm using the remote application (Take Control Viewer for RMM), which should be possible using appwatcher (like it is for the delete key code above). Does anyone know of a way I can accomplish this? I've tried generally swapping back the cmd and ctrl keys when the app is active, and I've tried specific key combinations, no luck with either method. Any insight would be much appreciated! Thank you!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A little context to my situation to explain why I want to achieve what I'm asking here:
I'm a systems administrator, and our company uses iOS for our work devices (I know, such a shame). The majority of the day, I'm remoting into our client's workstations and servers. These are predominantly Windows machines. The keyboard shortcuts are a bit of a dilemma (cmd +c/v/z vs ctrl + c/v/z) because I'm copy and pasting things hundreds of times a day, and I haven't been able to find an effective way to maintain using the same keys on my work system in general, and on my work system when I'm remoted into a client's system.
I also ran into this issue with the delete key (I prefer it's functionality the way it's programmed in windows, so I've modified my configuration for hammerspoon to accomplish the same end result when remoted into a clients system and on my own work system). This solution works pretty much flawlessly and I have no issues deleting items the same way across the board. Here's the code for this functionality:
I'm attempting to sort of mimic this same concept, except for the cmd/ctrl + c/v/z keyboard shortcuts to copy, paste, and undo. The problem I'm running into is that although I've modified my iOS preferences to re-map my cmd key to my ctrl key (and vice versa), this is only effective on my machine, when I'm not remoted into a client system. When I am remoted into a windows system, the ctrl key behaves like the windows key (it's actually mapped to the cmd key), and the cmd key behaves like the ctrl key. I want my cmd key to revert back to the cmd key when I'm using the remote application (Take Control Viewer for RMM), which should be possible using appwatcher (like it is for the delete key code above). Does anyone know of a way I can accomplish this? I've tried generally swapping back the cmd and ctrl keys when the app is active, and I've tried specific key combinations, no luck with either method. Any insight would be much appreciated! Thank you!
Beta Was this translation helpful? Give feedback.
All reactions