-
Notifications
You must be signed in to change notification settings - Fork 30
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
Control + S shortcut is not passed to Qt Creator in non-insertion mode #24
Comments
If I press |
Did you test it under Linux or Mac? If it is Linux, nothing happens. In Mac, fakevim interprets Command + s (not ctrl + s) as 's' command. |
Yup, I've tested it under Linux. It seems that it checks Ctrl but not Command key. Also I wonder why it's not treated as shortcut. |
After I updated the fakevimhandler.cpp file to this version https://codereview.qt-project.org/#patch,sidebyside,78305,2,src/plugins/fakevim/fakevimhandler.cpp. The problem became worse in Mac. Some shortcuts, like EasyMotion shortcut <Ctrl+;> that previously can be catched in normal mode now can not be catched by EasyMotion. |
You'll have to use both patches in that order for this to work. |
Doesn't the second patch already contain the changes from the first patch? I downloaded the second patch, I saw the changes in the first patch is already in the second patch. |
If you downloaded the zip file, then the changes from both patches should be there. |
That is what I did |
Was at least the " |
The reason why shortcut This really needs to be solved because otherwise you won't be able to differentiate between |
after the patch the problem is even worse in Mac. Even if there is unsaved
|
Here is fix for If you can, please try mapping some non-US keys -- I've tested few non-latin characters which worked but I expect there to be some exceptions. |
I just tested it in Mac, the problem still exists. If there is unsaved change, fakevim saves the file. If there is no change in the file, fakevim interprets |
The following output is from the case when there is unsaved change, and I press the following is the output from the case when there is no change and I press |
I get the same output. I'll try to put some more useful debug info to the |
Hello, is there an update? 4.5 years later this is still present in latest Qt Creator :( |
@pvaibhav I haven't updated the code in a while. You try opening an bug report for Qt Creator if it's not reported there. |
A lot might have changed from 2014 to 2015. |
Tools -> Options -> FakeVim -> Check "Pass Control Key" should do the trick. |
Unfortunately that doesn't help (on a Mac). Cmd + S still clears out the whole line, |
@pvaibhav one workaround is to put |
Control + S shortcut is not passed to Qt Creator in non-insertion mode under Linux.
In Mac, if I press Command + S and file is not changed, fakevim behaves like only key 's' is pressed. It deletes the character under cursor and goes into insertion mode. If there is file change unsaved, it will save the file.
The text was updated successfully, but these errors were encountered: