-
Notifications
You must be signed in to change notification settings - Fork 76
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
Shift Select or Cmd Select not Working on macOS Sierra #29
Comments
bump pressing issue |
I would also like this bug fixed. from the looks of it, only Corsair brand mice are synergizing well with the Corsair keyboard. So, until this bug is fixed I am having to use my Corsair Scimitar instead of my preference: Razer DeathAdder Chroma. |
sorry that I cannot help on this issue. I don't have mac and on linux your scenario is running normally. |
It works with corsair mice? |
I am having this problem too running macOS Sierra. As an avid IntelliJ and Chrome user not being able to use Cmd + Click or Shift Click bugs the hell out of me. The reasons for me to buy this keyboard were:
However my kid only plays with this for maybe 15' max every day and I need to do some side projects at home for 2+ hours everyday on even more hours on the weekend! So again having Cmd + Click while retaining all the animated color effect is a must for me. I think I just found out a work around for the best of both requirements.
I've tested this a few times and it's worked perfectly without having to restart my Mac. Btw for those who want a quick instruction to build ckb-next from command line, this is what I did:
|
I have the same issue with K65 RGB && Sierra |
Have been watching this issue as I am experiencing the same bug (as well as the "hit caps lock too many times and everything crashes" bug). However this morning, it appears to have gotten worse - previously, I could not use the modifier hold key combos (shift/cmd + select, cmd multi-line in Atom, etc.) but could still use them for basic modifier functions (cmd + a, cmd + w, cmd + n, etc). Now, the modifier keys don't have any effect at all. EDIT: Just did some testing - I can rebind the command function to any other key, however any binding I set for the Windows/Cmd key is ignored. |
Just to make everyone aware, Sierra support is, at best, very poor. We're working on a solution, but Apple deprecated APIs used by ckb-next in Sierra and we have not found a good solution yet. This post: http://dae.me/blog/2144/on-macos-sierra-support-and-the-future-of-smoothmouse/ has some relevant information regarding some of these issues. MacOS hackers/experts/wizards are invited to contribute. Those of use who are working on this project currently are not MacOS experts. |
I just tested my K70 RGB out on the latest master version. I bound the keys in the following way:
In the terminal it works as expected, a non-corsair and a corsair-but-non-ckb-trapped keyboard works the default way (ctrl -> control, windows -> command, alt -> option). I researched a little and discovered, that we cannot naively replace the Carbon API with the Cocoa API, the former is the legacy C API, the latter is the newer Objective-C API. Thus, if we want to update the Daemon process, we need to split the source code into two OS-specific sources ... OR ... use a more high-level abstraction library of which I don't know yet, which. ... OR ... we remove the rebinding of the keys, which should be handled by other software (maybe the Karabiner-rewrite). I personally am in favor of removing this, as it adds another level of maintaining- as well as OS-specific problems. If you have differing opinions/reasoning, I would like to hear it. |
If the modifier key remapping functionality is what breaks ctrl-clicking in Sierra I'm in favour of just stripping out that functionality too on the macOS platform. I think most people installing ckb are just interested in the RGB light effects anyway. |
, we can remap the control and option keys in the settings already. |
After some more research I found out, that the problem with mac-specific keyboard drivers is more severe, that at first anticipated:
This means, that for utilizing the Cocoa API, we have to write a separate daemon process to handle the keyboard functionality. Apart from that, I will try to remove the Mac OS-specifc remapping-functionality for Sierra and above in a separate branch in the next few weeks. (Disclaimer: I say the next weeks, as I am not sure, how long I can work on this each day.) |
@fleischie You probably didn't see my messages on IRC, but to sum it up
I said that there are keyboards that do not work out of the box on
macOS, so by removing ckb-next's ability to do this, then these
keyboards will still not work on anything other than BIOS mode. #31 is
a good example.
|
I'm willing to work on this if someone points me in the right direction with what's needed. |
@sinetek Yes please feel free to look into this issue. I discussed this further with @tatokis and @light2yellow in the IRC chat, you're welcome to chat with us there, as well. My research so far:The main problem it seems is that Mac OS is awaiting an explicit setting of the appropriate IO Option Bit/Flag, when using a command modifier (Cmd/Shift/Alt/Option/etc.). Thus your best bet is to check out input_mac.c. More specifically, Then I am puzzled as how to fix the additional selection functionality. Maybe also check Karabiner-Elements how they are implementing this (and whether this works as intended). If you need further information and/or discussion, you can always ask or come into the IRC chat and chat with us. 😄 |
My issue with this is fairly recent. Not had the issue before with the modifier and click. But can't use shift/control to highlight files, or layers in software like photoshop, after effects etc or system wide for that matter. BTW i'm using a standard wired Apple keyboard. UK and US version - both have the same problem. Shift to rescale items (keeping proportions) anything requiring a shift/control shortcut no longer works. Wonder if anyone has any thoughts. There have been multiple updates but still present... Seems odd that this wouldn't be fixes as a matter of urgency? |
@daveedjackson this is strange, Apple keyboard must work. The only issue related to a few keys was found and fixed in sierra .2. Do you use Karabiner? If yes, it is no longer suitable, use Karabiner-elements instead. |
@light2yellow Two keyboards don't - have literally tried everything - it's very annoying - and very strange. No i don't use Karabiner... |
@daveedjackson Not that we don't want to help you out, but the issues in the this thread are related to corsair keyboards and ckb-next. |
Just for reference, I am currently trying to read the apple system's documentation: The specified issue is referenced as Keyboard Interface Control, which - if I understand correctly - has something to do with how Apple's Windowing System handles keyboard input delegation. The main problem still seems to be, how the daemon is handling the low-level usb-input-events and how Cocoa-based applications handle high-level framework specific input-events. I am starting to get the feeling, that Apple is expecting the low-level functionality, which is happening in the daemon to be implemented in the high-level (Cocoa) portion of the app (which is used as the GUI as well as user input handling). I am contemplating a possibility to write the daemon separately as a C++ program, that is linked against the Cocoa framework, utilizing the "high-level" portion of the key-inputs. But I am still trying to figure out, how the daemon does and the Apple expects to work. 🤷 @sinetek are you still interested in this issue? |
@fleischie Yes, I am, yes. I'll need to read the documentation first and get a handle on what you said. |
Just FYI shift-select works fine when ckb-next is removed. Not sure if anyone has tried this yet? As nice as it is to have the RGB functionality of this keyboard, and as much as I appreciate everything the developers are doing, it's gonna have to remain uninstalled until this vital feature is repaired. |
Hi guys, could we label this issue with the macOs label and also include this as a known issue in the README for macOS users? This would be really helpful. Thanks! |
After a period of use, I found that, once loaded the com.ckb.daemon.plist file, I can't use CMD and shift - select, even if I don't start CKB. App, if delete the com.ckb.daemon.plist files, my keyboard can use as normal, but the default configuration of lights I can use only.(K65 RGB LUX,MacOS 10.12) |
@auibrian The output is:
And
All the other CKB features (light, binding, etc) are working normally, just the cmd/shift + click is not working now |
@smachi Thanks. Very odd. I'm running 10.12.2. Let me see what happens if I upgrade. I'll need a day or two to explore this fully. |
@auibrian No problem. Thanks a lot for your help. |
@mrgaolei you can't find it because this is an issue, the PR itself is #106. When you visit that page, on the top of it you will see something like You are interested in the from part of it. For some reason GitHub doesn't allow easy navigation by click here, so here's what I would have done:
git clone https://github.com/auibrian/ckb-next.git --branch issue29 --single-branch aubrian-ckb-next
cd aubrian-ckb-next
./quickinstall |
I'm seeing something similar now that I've upgraded to 10.12.3 from 10.12.2. I will report back when I have found more. |
@auibrian it is seeming like there is some sort of modifier inside ckb-daemon causing it to revert. My iPad is about to die or I would go through the code and see if I could find it. I may have to wait until I get home to see if I am having this same issue. (I admit. I have been bad... Been using my Blackwidow Chroma. The Strafe is much better quality for a keyboard though. I just needed the audio pass through. =( ) |
I think I've gotten this figured out. I'm hoping to have a fix w/in 24 hours. Thanks for the feedback everyone! |
So, is there an update to the fix @auibrian ? |
@auibrian I seem to have discovered something on your PR. by running |
Hi @rag3trey, Yes, I made a fix the other night for it but it's not ready to release yet. I'd like to explore another option. The short version of the issue is: when a user isn't logged on we can't create the CGEventTap. If you waited until after login to plugin your keyboard after a restart you would. Or see this problem. Also as you have discovered a simple restart of the daemon will also route around the problem for the time being. I'm hoping to finish my second version of the fix this weekend. |
ah good news @auibrian |
also @auibrian shouldn't it not really matter if it doesn't work on the login screen? You aren't trying to shift click or anything there. It may just need to start it with the client, rather than with the computer itself. The keyboard should work with just plug-and-play since it it just sort of... well.. a keyboard. Correct me if I am wrong though. |
Hi @auibrian, Any news about the new fix you were working on? |
I closed the appropriate PR right now and the changes are in the testing branch. Regarding the supplemental issue, please open a new separate issue. Thank you! 🙂 |
Compiling from source works for me on High Sierra 10.13.2 The pre built binary is from May and from what I can surmise from comments does not implement the fix. I just did the quickinstall as I already had the other prereqs installed or setup already for my own coding. |
This issue comes from the original CKB driver but still present on this fork:
ccMSC/ckb#534
The text was updated successfully, but these errors were encountered: