BBC BASIC for Windows
« CTRL + (Backspace or Delete) »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 9:59pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: CTRL + (Backspace or Delete)  (Read 778 times)
RayRayTea
New Member
Image


member is offline

Avatar




PM


Posts: 7
xx CTRL + (Backspace or Delete)
« Thread started on: Aug 9th, 2012, 04:32am »

Is there a way to have standard Windows feature of deleting the whole word by pressing CTRL + (Backspace or Delete) behave like it does in all other Windows applications? I use this a lot while typing and find myself occasionally attempting to use it in BB4W IDE… but it doesn't work there, instead it produces glitches.

I know I can also just select the text by first selecting it with Shift + Cursor Left / Right and then deleting it, but it's more work.
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: CTRL + (Backspace or Delete)
« Reply #1 on: Aug 9th, 2012, 08:40am »

on Aug 9th, 2012, 04:32am, RayRayTea wrote:
Is there a way to have standard Windows feature of deleting the whole word by pressing CTRL + (Backspace or Delete) behave like it does in all other Windows applications?

Standard Windows feature? All other applications? huh

The BB4W program editor is modelled on Notepad, which is as 'standard' as it comes, and in Notepad CTRL+Backspace doesn't delete a word, it inserts a DEL character in the text. I've also tried another application (Liberty BASIC), and that's the same: CTRL+Backspace inserts a character in the text.

Interestingly, Raymond Chen of Microsoft has blogged on this very subject; he describes it as a 'rogue feature':

http://blogs.msdn.com/b/oldnewthing/archive/2007/10/11/5395501.aspx

The quickest way to delete an entire word in BB4W is to double-click on it and then press delete. To do it without the mouse, hold down both SHIFT and CTRL then press the left or right arrow to select a word.

Richard.
User IP Logged

RayRayTea
New Member
Image


member is offline

Avatar




PM


Posts: 7
xx Re: CTRL + (Backspace or Delete)
« Reply #2 on: Aug 9th, 2012, 09:27am »

Well it's standard on my computer :) For example in the last few hours I used it while typing the original post of this thread (in Chrome), in Photoshop (while renaming a layer), in path bar of my file manager (Direcotry Opus; admittedly it doesn't work while renaming files), in OpenOffice ("Calc", to be precise), and I know it also works in Notepad++ and other software I use daily as well as Windows Explorer / Internet Explorer 64. So this made me think it's standard.

I know a word can be deleted by doubleclicking (or selecting it with Shift, I even mentioned that in the first post) and deleting it, but the CTRL + Del is much quicker. Had no idea it's actually a wild feature, I'm using it constantly! Heh, nevermind then. Too bad, it's such a handy operation!

Edit: clarification.
Edit: Just for fun I tried it in PureBasic and PlayBasic, and it works there too. GLBasic doesn't support it.
« Last Edit: Aug 9th, 2012, 09:43am by RayRayTea » User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: CTRL + (Backspace or Delete)
« Reply #3 on: Aug 9th, 2012, 10:09am »

on Aug 9th, 2012, 09:27am, RayRayTea wrote:
Well it's standard on my computer smiley

Not in Notepad, surely? Notepad is basically a regular Windows Edit Control with a simple wrapper to provide menus etc. Therefore I would say that is as close as you will get to defining a 'standard' for the keyboard interface.

It's apparent from the replies to Raymond's blog post that several applications have copied the 'rogue feature'. Maybe BB4W should too, but obviously it's not something that I can retro-fit into the existing version. I tried programming a Macro key to do it, but that didn't work either.

Richard.
User IP Logged

RayRayTea
New Member
Image


member is offline

Avatar




PM


Posts: 7
xx Re: CTRL + (Backspace or Delete)
« Reply #4 on: Aug 9th, 2012, 10:55am »

on Aug 9th, 2012, 10:09am, Richard Russell wrote:
Not in Notepad, surely?…

Well I use Notepad++ myself and thankfully haven't seen Microsoft's Notepad on my screen for literally years so I had no idea… but yes, as you say there it doesn't work either.

To be honest I never even thought of checking whether this feature is a "rogue" one… But anyway, if you ever start using it, you will see it's as useful as CTRL + Cursor (Left / Right) so maybe you'll get the desire to implement it in BB4W too smiley
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: CTRL + (Backspace or Delete)
« Reply #5 on: Oct 8th, 2012, 08:33am »

on Aug 9th, 2012, 10:09am, Richard Russell wrote:
It's apparent from the replies to Raymond's blog post that several applications have copied the 'rogue feature'. Maybe BB4W should too

It's implemented in BB4W version 5.94a.

Richard.
User IP Logged

RayRayTea
New Member
Image


member is offline

Avatar




PM


Posts: 7
xx Re: CTRL + (Backspace or Delete)
« Reply #6 on: Feb 11th, 2013, 11:20am »

Just wanted to thank you for implementing this, it's really making things smoother for me!

…but to make things funny, in one of the latest updates Microsoft must have changed something because some (fortunately a minority) of the software that used this feature now works differently, namely it deletes the whole line (or inserts a "rectangle" character) instead of just the word! Grr!

Oh well at least it works "correctly" in BB4W smiley
« Last Edit: Feb 11th, 2013, 11:27am by RayRayTea » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls