How do i close a file and switch to command mode

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
fishface
Registered Member
Posts: 1
Joined: Fri Dec 20, 2013 3:22 pm

How do i close a file and switch to command mode

Post by fishface » Fri Dec 20, 2013 3:40 pm

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?

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

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

Post by andrew » Fri Dec 20, 2013 3:46 pm

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.

User avatar
hungerburg
Premier Member
Posts: 160
Joined: Fri May 28, 2010 7:35 pm

Re: How do i close a file

Post by hungerburg » Tue Jun 24, 2014 11:56 am

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"?

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

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

Post by andrew » Tue Jun 24, 2014 1:03 pm

You can patch your QCAD by saving the two attached files to their appropriate directory.
Attachments
CloseAllInit.js
Replaces scripts/Window/CloseAll/CloseAllInit.js
(390 Bytes) Downloaded 610 times
CloseFileInit.js
Replaces scripts/File/CloseFile/CloseFileInit.js
(532 Bytes) Downloaded 523 times

chriddy
Registered Member
Posts: 2
Joined: Fri Nov 21, 2014 10:09 am

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

Post by chriddy » Fri Nov 21, 2014 10:21 am

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!

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

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

Post by Clive » Fri Nov 21, 2014 11:26 am

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.
For the best support please state your operating system, QCAD version and add any supporting DXF/DWG files, screenshots etc...

chriddy
Registered Member
Posts: 2
Joined: Fri Nov 21, 2014 10:09 am

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

Post by chriddy » Fri Nov 21, 2014 1:31 pm

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:

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

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

Post by Clive » Fri Nov 21, 2014 1:48 pm

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 :)
For the best support please state your operating system, QCAD version and add any supporting DXF/DWG files, screenshots etc...

User avatar
dfriasb
Senior Member
Posts: 119
Joined: Thu Mar 10, 2016 1:08 pm
Location: Calafell, Tarragona, Spain

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

Post by dfriasb » Thu Jun 22, 2017 4:49 pm

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
David Frías Barranco | architect
[email protected] | davidfriasarquitecto.es

Post Reply

Return to “QCAD 'How Do I' Questions”