News for hackers. Stuff that matters.
Re:Doing work locally minimizes problems with Electron apps by jpwgarrison on Tuesday June 25, 2019 @01:27PM (#20276612)
> like disabling selecting text when you shouldn't be able to

This is the worst thing in computers. Why would you EVER _block_ the ability to select text? I am engaged enough to want to select something you made! Embrace that, don't stop it!

Re:Doing work locally minimizes problems with Electron apps by robocat on Tuesday June 25, 2019 @06:08PM (#20279549)
Think of all the thousands of tiny snippets of text and single Unicode characters that make up a UI. You definitely don't want to be able to select snippets within most controls, because selection interferes with using the control.

Examples: the text in a menu item, the text in a button, the Unicode x in a close icon, the bar between menus.

This is really noticeable in a few web applications where you can select the wrong thing and it interferes severely with using the UI (I have experienced this with Windows and Android).

Yes, you usually want to be able to select the main text. However many mobile UI frameworks just disable all selection, because that is the easiest way to also disable selection within UI controls (managing this issue is actually quite difficult from my experience writing a HTML UI framework).

Re:Doing work locally minimizes problems with Electron apps by steve1977 on Wednesday June 26, 2019 @02:56AM (#20282490)
In other words, HTML UI frameworks are still far behind native frameworks and actually not really usable yet.
Re:Doing work locally minimizes problems with Electron apps by robocat on Wednesday June 26, 2019 @04:23AM (#20282925)
In other words, poorly written components don't work well: which happens in other GUI toolkits and not just HTML.

Good HTML UI frameworks don't make this mistake.

Re:Doing work locally minimizes problems with Electron apps by steve1977 on Wednesday June 26, 2019 @07:35AM (#20283942)
Are there any good HTML UI frameworks yet?
Re:Doing work locally minimizes problems with Electron apps by robocat on Wednesday June 26, 2019 @01:51PM (#20287366)
So long as you don't want an OS native UI, yes I think so.

For example I use Visual Studio Code every day and the UI seems pretty good to me (panels, menus, tabs, check boxes, combos etc). I am presuming it uses a component framework (although I admit I haven't looked at the source).

Re:Doing work locally minimizes problems with Electron apps by automathematics on Tuesday June 25, 2019 @03:07PM (#20277718)
I got one. Because my electron app is a game. I don't want you interacting with text as text, it's supposed to be more of a "texture" like one would expect from a native DirectX implementation
Re:Doing work locally minimizes problems with Electron apps by jniedrauer on Tuesday June 25, 2019 @03:00PM (#20277635)
This is one of the reasons I despise touching Windows. Why on earth are error dialog boxes not selectable??
Re:Doing work locally minimizes problems with Electron apps by dflock on Tuesday June 25, 2019 @03:13PM (#20277779)
Yeah. However, when the dialog is focused you can press ctrl+c to copy it's contents to the clipboard.
Re:Doing work locally minimizes problems with Electron apps by jniedrauer on Wednesday June 26, 2019 @12:00PM (#20286226)
Who thought this was a good UX?
Re:Doing work locally minimizes problems with Electron apps by dflock on Thursday June 27, 2019 @03:16PM (#20297607)
The same people who wrote the Windows API, I guess.
Re:Doing work locally minimizes problems with Electron apps by j6m8 on Tuesday June 25, 2019 @03:49PM (#20278142)
WHAT?! This changes everything.
Re:Doing work locally minimizes problems with Electron apps by Groxx on Tuesday June 25, 2019 @06:56PM (#20280011)
To simultaneously answer many of the "usually you don't want X to be selected":

So don't always allow selecting everything. If you start your selection inside "content", constrain to content, don't select labels. If you start on a label, select labels and maybe content too.

Native apps do this all the time in small degrees, people are used to it: "select all" selects content, not chrome, and it's context-sensitive in many cases (e.g. select all in a folder doesn't select parent folders even if they're visible).

Don't block selection please.

Re:Doing work locally minimizes problems with Electron apps by ubercow13 on Tuesday June 25, 2019 @10:05PM (#20281255)
I don't want to select text in a button
Re:Doing work locally minimizes problems with Electron apps by Groxx on Wednesday June 26, 2019 @03:33AM (#20282649)
having encountered some buttons with significant amounts of text: nothing is off-limits IMO. frequently tho, yea, "ok" isn't useful to allow to be selected.

On the other hand, getting people to copy what they see rather than read it out loud incorrectly can, pretty often, cut several rounds of back-and-forth out of remote tech support. It seems insane because it is, but yes - copying text in a button rather than having them say "I clicked the yes button" (when no such button exists) is a useful feature.

Re:Doing work locally minimizes problems with Electron apps by Lerc on Tuesday June 25, 2019 @04:26PM (#20278539)
On the other hand I hate apps that have user interface elements where you can select the text by accident instead of interacting with the element that contains the text.

Imagine what it would be like if a click and drag on a window title bar moved the window but a click and drag on the text part of the title bar just selected text.

Back in the Amiga days there was a nice little app that let you go into selection mode and then draw a rect around anything and it would pseudo-ocr it. Surely something like that exists on current machines, but I havn't seen it.

Re:Doing work locally minimizes problems with Electron apps by smhenderson on Tuesday June 25, 2019 @07:42PM (#20280425)
I know what you’re saying. Our company settled on a well known cloud app for ERP/CRM and daily I deal with copying and pasting something from it that invariably brings along extra text/ui elements that I didn’t want. Sometimes it’s just extraneous space, sometimes it’s extra text I don’t even realize was highlighted.

Another example are tables that have selection boxes for records or “action” links in each row like print or view. If I could select this table without those columns coming along for the copy ride I’d cut at least one if not a few steps out for every time I copy/paste something.