Page 1 of 1

How do i close a file and switch to command mode

Posted: Fri Dec 20, 2013 3:40 pm
by fishface
Hi

I do almost everything with keyboard shortcuts.

1)I would like to be able to close the current file/drawing using a keyboard shortcut. Control W is shown on the drop down menu, but if I press control W, nothing happens. I note that if I run it from a bash terminal , it says 'Warning: QAction::eventFilter: Ambiguous shortcut overload: Ctrl+W". Does anyone have a work around for this? I am running version 3.4.5, 32 bit on Debian Wheezy.

2) I cancel commands using the shortcut 'qq', but sometimes this doesn't work because the focus is currently on an imput field like the Command line or a parameter box. I can switch back to command mode by pressing escape, but sometimes I need to press escape multiple times before I can type shortcuts like qq. Is there a shorter, faster key combination that I can use to move the focus away from any import fields so that I can immediately type the next shortcut in like qq or za?

Re: How do i close a file and switch to command mode

Posted: Fri Dec 20, 2013 3:46 pm
by andrew
fishface wrote:1)I would like to be able to close the current file/drawing using a keyboard shortcut. Control W is shown on the drop down menu, but if I press control W, nothing happens. I note that if I run it from a bash terminal , it says 'Warning: QAction::eventFilter: Ambiguous shortcut overload: Ctrl+W". Does anyone have a work around for this? I am running version 3.4.5, 32 bit on Debian Wheezy.
Thanks for your report. I will look into this.
fishface wrote:2) I cancel commands using the shortcut 'qq', but sometimes this doesn't work because the focus is currently on an imput field like the Command line or a parameter box. I can switch back to command mode by pressing escape, but sometimes I need to press escape multiple times before I can type shortcuts like qq. Is there a shorter, faster key combination that I can use to move the focus away from any import fields so that I can immediately type the next shortcut in like qq or za?
No, there is no key code to change the focus.

Re: How do i close a file

Posted: Tue Jun 24, 2014 11:56 am
by hungerburg
andrew wrote:
fishface wrote:1)I would like to be able to close the current file/drawing using a keyboard shortcut. Control W is shown on the drop down menu, but if I press control W, nothing happens. I note that if I run it from a bash terminal , it says 'Warning: QAction::eventFilter: Ambiguous shortcut overload: Ctrl+W". Does anyone have a work around for this? I am running version 3.4.5, 32 bit on Debian Wheezy.
Thanks for your report. I will look into this.
Andrew, any news on this? I see that in 3.6 on linux. Browsing through the menus, I cannot find another entry apart from "close" that would claim the CRTL-W combination, so its a miracle where the ambiguity comes from…

PS: The "window" menu item "close all" might be "CTRL-SHIFT-W"?

Re: How do i close a file and switch to command mode

Posted: Tue Jun 24, 2014 1:03 pm
by andrew
You can patch your QCAD by saving the two attached files to their appropriate directory.

Re: How do i close a file and switch to command mode

Posted: Fri Nov 21, 2014 10:21 am
by chriddy
andrew wrote:
fishface wrote:2) I cancel commands using the shortcut 'qq', but sometimes this doesn't work because the focus is currently on an imput field like the Command line or a parameter box. I can switch back to command mode by pressing escape, but sometimes I need to press escape multiple times before I can type shortcuts like qq. Is there a shorter, faster key combination that I can use to move the focus away from any import fields so that I can immediately type the next shortcut in like qq or za?
No, there is no key code to change the focus.
I actually have the same problem.

When drawing lines, I often enter coordinates in the command line. For the next segment, I sometimes want to use a keyboard shortcut (e.g. restrict horizontally, EH), so I need to get the focus away from the command line. Escape or the right mouse button do this, but they also restart the line command so that I cannot continue the line where I left off.

I have found that here, the middle mouse button does what I want. Still, a generic keyboard shortcut to "unfocus" the command line would be very helpful!

Re: How do i close a file and switch to command mode

Posted: Fri Nov 21, 2014 11:26 am
by Clive
chriddy wrote:When drawing lines, I often enter coordinates in the command line. For the next segment, I sometimes want to use a keyboard shortcut (e.g. restrict horizontally, EH), so I need to get the focus away from the command line. Escape or the right mouse button do this, but they also restart the line command so that I cannot continue the line where I left off.
Hi chriddy, welcome.
I'm trying to understand this one, if you are using the command line to enter coordinates for drawing lines etc - then lets say you want to use the shorcut 'EH' you can still stay focussed in the command line and type in EH then press enter, to come out of the restriction type in EN then press enter while you are still in the command line, ther's no need to reenter the command line at all in this particular instance - unless I've got it all wrong, please explain clearly with steps what you mean.

Re: How do i close a file and switch to command mode

Posted: Fri Nov 21, 2014 1:31 pm
by chriddy
Clive wrote: then lets say you want to use the shorcut 'EH' you can still stay focussed in the command line and type in EH then press enter
Hi Clive,
thanks a lot, that never occured to me!! :oops:

Re: How do i close a file and switch to command mode

Posted: Fri Nov 21, 2014 1:48 pm
by Clive
chriddy wrote:thanks a lot, that never occured to me!! :oops:
Hey no worries, most things never occur to me straight away ... or so my wife tells me, but I do try :)

Re: How do i close a file and switch to command mode

Posted: Thu Jun 22, 2017 4:49 pm
by dfriasb
I don't find the way to close the current window/drawing by keyboard. I'm on Linux - Ubuntu 16.04, last QCAD version.
Only "Close All" with Ctrl+Shift+W is possible. I there any other way a part from mouse?

Thanks a lot! Best regards,

David