Ctrl+B doesn't work in standalone

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Cool Dave
Posts: 35
Joined: Mon Jun 25, 2012 8:44 pm

Ctrl+B doesn't work in standalone

Post by Cool Dave » Thu Jun 15, 2017 8:01 pm

Hi everyone,

I am working on a Windows application that uses htmltext for a lot of things.
Typing Ctrl+B (Bold), as well as italics and underline, works perfectly in livecode without getting into the htmltext, but in a standalone the keyboard shortcuts do nothing at all.
Is there something I can do to fix this rather than manually modifying the htmltext? Is this a bug that should be reported?

Thanks for any help!

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Ctrl+B doesn't work in standalone

Post by Klaus » Thu Jun 15, 2017 8:21 pm

Hi Dave,

IDE <> standalone!

Means if you did not create and script a "Text" menu in your app with its appropriate keyboard shortcuts just like the IDE, then this cannot work. 8)


Best

Klaus

Cool Dave
Posts: 35
Joined: Mon Jun 25, 2012 8:44 pm

Re: Ctrl+B doesn't work in standalone

Post by Cool Dave » Thu Jun 15, 2017 8:40 pm

Thanks Klaus,

So you are saying I have to manually code my own means of creating and destroying <b> tags, etc, in the htmltext?
That really sounds like something that should be included in the default field. After all, the folks who made livecode clearly already have the code.
if you did not create and script a "Text" menu
Do you mean a nice little row of buttons like the one in property inspector's "Text" tab?

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Ctrl+B doesn't work in standalone

Post by Klaus » Thu Jun 15, 2017 10:28 pm

Hi Dave,
Cool Dave wrote:So you are saying I have to manually code my own means of creating and destroying <b> tags, etc, in the htmltext?
Yes.
Cool Dave wrote:...
if you did not create and script a "Text" menu
Do you mean a nice little row of buttons like the one in property inspector's "Text" tab?
Yes, or the menu "Text" in the menubar, or create some buttons that will do the job.


Best

Klaus

P.S.
Thank you for not shooting the messenger! :D

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Ctrl+B doesn't work in standalone

Post by jacque » Fri Jun 16, 2017 5:40 pm

If you don't want to add a menubar to the stack you can use a commandKeyDown handler to catch cmd-b and set the textstyle of the selectedChunk to bold. There's usually no need to mess with the htmltext.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply