Why Gov.uk's Exit this Page component doesn't use the Escape key

289 pointsposted 13 hours ago
by todsacerdoti

152 Comments

bckygldstn

9 hours ago

A similar initiative in NZ is Shielded Site [1].

Many large sites (eg The Warehouse [2]) participate by putting an icon at the bottom of their website. When clicked, a modal pops up with domestic abuse resources.

There’s a prominent exit button that closes the modal faster than a page navigation or finding the close tab button. Closing the popup returns you to a major website rather than a new tab page. And most importantly, your history contains no evidence you viewed the information.

[1] https://shielded.co.nz

[2] https://www.thewarehouse.co.nz

stavros

3 hours ago

Unfortunately, clicking outside the modal (by far the biggest target to hit) doesn't actually close the modal, you need to click the (relatively small) close button.

fennecfoxy

3 hours ago

As a Kiwi I miss the ware whare!

However I am extremely disappointed to see that the questions section of that starts out gender neutral and then basically does the usual "if you're a woman being abused by a man..."

There is still no support for male victims of domestic violence, whether the abuser is male or female. :/ it's not hard to cater to all cases, no wonder men don't bother - particularly when it's reported that male victims who resort to calling the police are most often the one handcuffed/detained when they arrive.

In before someone comments something that we've all heard before - it's not a competition, both women & men can be helped by the same system, regardless of supposed statistical likeliness, etc.

pushupentry1219

2 hours ago

This is very fair. I have a close male friend who was the victim of intense domestic violence, physical, emotional and financial manipulation by his ex partner.

He talks about how child support staff (like reception for example) are, are not favouring of him. They see DV in his profile and assume he's the perpetrator instantly. He had to explain himself constantly, no doubt reliving trauma when he does.

He has been struggling with the courts to gain sole custody of his child.

And to top it all off all the posters around these places are, like you say, about women reaching out against their abusive male partners. Which IS an issue and IS statistically more likely. But you make a very good point about these systems being able to help both.

failingslowly

2 hours ago

Thank you, this needs to be repeated whenever this situation arises.

echoangle

7 hours ago

  window.onload = function(){}
Shouldn’t this be addEventHandler? Otherwise, you can only have a single onload callback, right?

crote

4 hours ago

> There’s a prominent exit button that closes the modal faster than a page navigation or finding the close tab button.

I spent about 30 seconds figuring out how to close it. The icon in the top-right? No, that goes to the start page. Perhaps the icon in the top-left? No, that goes to the main menu. Clicking outside the modal, like most other websites? Nope, doesn't work.

Turns out the close button is the half-circle at the bottom of the modal, which is exactly the same color as the rest of the modal. It's pretty obvious once you see it, but it took me way too long to find. They should've either placed it in the top-right like literally every other close button ever, or made it bright red so it's impossible to miss.

frereubu

5 hours ago

This is a great idea. I can't see the icon on the Warehouse site though - can you point me to it? How do people come to know about what the icon does?

ClearAndPresent

5 hours ago

The icon is the teal/white circle just in line and to the right of the social media icons at the bottom of the page. I missed it on first glance and would have no idea what it did.

frereubu

4 hours ago

Oh. I thought that was a light mode / dark mode button... Unlikely on a retail site I guess, but discoverability feels pretty bad. It's not like you couldn't just write "suffering from domestic abuse?" on there because the person doesn't have to click it in situations where that would be risky, and could come back later if they spot it at the wrong time.

teruakohatu

5 hours ago

I had to hunt around to find it. Bottom right, aligned with "Corporate" in the footer links. Next to the Facebook icon.

arp242

10 hours ago

Ideally this should pre-load the BBC weather page so switching to it is (near-)immediate. Currently it can take a while to load. Replace all DOM and then replace URL should do it.

There is also the matter of history; if I load the demo page, click that button, and press "back" then I'm on the demo page again.

And of course it'll be in the browser history.

I have to question how practically useful this is. Ctrl+W or middle click on tab isn't that far off. Or open private window and close that, which is a smart thing to do anyway.

Never mind that computers and internet access is ubiquitous enough these days that "using the family computer" for this sort of thing isn't really needed in the first place.

Overall this seems like a IE5-era solution that's pretty outdated and useless today. Perhaps even worse than useless because the implementation is so-so and protection it offers low.

Overall, I'd say telling people to use private windows and teaching then Ctrl+W is probably better.

seszett

8 hours ago

> Never mind that computers and internet access is ubiquitous enough these days that "using the family computer" for this sort of thing isn't really needed in the first place.

I'm just glad you're not in charge of this kind of services because although that might seem like an obvious thing to you, the reality is that the people needing that information the most are the ones who are the least likely to have easy access to a personal device with Internet access.

In particular, children and women in dysfunctional, abusive relationships are not very often provided with a smartphone and a data plan by their abusers.

I agree that the shift shortcut is unlikely to be of much use, but it's just one available method in addition to the rest.

graemep

5 hours ago

Abused men have similar problems although we are probably less likely to have no internet access restricting and monitoring communications is a common part of abuse.

My ex wife did not want me to get a smartphone and, in retrospect, it was because it let me keep in closer touch with family abroad (which is the main reason I have one at all). She also got very upset when I changed the password on my desktop some years previously.

Ntrails

4 hours ago

> I agree that the shift shortcut is unlikely to be of much use, but it's just one available method in addition to the rest.

I don't know how the relevant user is informed about the option/feature, but assuming they're aware it is a positive feature both in terms of thoughtfulness and execution.

Be interested to see the stats on how often it gets called

yreg

3 hours ago

> I'm just glad you're not in charge of this kind of services

Why are you attacking the user instead of just focusing on the argument?

port19

14 minutes ago

Bad internet habit, just asssume that "you" refers to the hypothetical person made of nothing but that one expressed opinion

arp242

2 hours ago

I think it should be obvious from the full comment that I don't think that doing _something_ for this is useless. Most of my comment is about how this is not actually sufficient to protect people.

And "we need to do something for this" doesn't mean that this particular feature/button is a good idea.

Like I said, telling people to use private windows and teaching them Ctrl+W seems like a better solution to solve the same problem to me. You can have a widget with some basic tips, and you can even show the correct instructions based on the browser the person is using.

tourist2d

8 hours ago

> women in dysfunctional, abusive relationships are not very often provided with a smartphone and a data plan

This sounds like something which you have no evidence at all for claiming.

jakkos

6 hours ago

I knew a person who was in abusive relationships where the abuser would keep making ridiculous claims that the person was cheating on them, and made them give up having their own phone as "proof" that they wouldn't cheat.

Of course, the abuser was cheating the whole time.

seszett

7 hours ago

I don't have evidence but I do have experience on this.

I'm not sure why you would be the quickly dismissive of something that would seem obvious to many.

Aeolun

7 hours ago

I mean, it’s a ‘water is wet’ kind of statement. Prisoners aren’t provided a mobile phone and data plan either.

Moogs

8 hours ago

> Ctrl+W or middle click on tab isn't that far off The point of shift x3 is that it's consistent across keyboard layouts including laptops. I have a laptop where the location of the ctrl key is moved inward to make room for the function key. I frequently hit Fn instead of Ctrl and don't realize what's happening until I look at my keyboard. And that's not when I'm in distress. Same goes for middle click. It's not a consistent interaction. On some laptops you can left click and right click to get a middle click. On my laptop, it's a three finger tap.

> Never mind that computers and internet access is ubiquitous enough these days that "using the family computer" for this sort of thing isn't really needed in the first place. In a normal situation, this is true, but this is UI design for people in extraordinary situations. Their abuser may have taken their cellphone or other devices and may not have a choice in what computer they use or when they have access to it.

Nothing about this prevents private windows or Ctrl+W (assuming they have another window open so it doesn't look suspicious that they're staring at a blank desktop), it just gives victims a quick action they can take to prevent immediate retaliation.

eviks

5 hours ago

> I frequently hit Fn instead of Ctrl and don't realize what's happening until I look at my keyboard. And that's not when I'm in distress. Same goes for middle click. It's not a consistent interaction.

Triple Shift that you can only on a single website is worse since you're even less likely to be able to use it in distress

Besides, as a site you can try to add typo-similar combinations for your "hide" action (like alt+w or win+w) instead of creating a totally different one

vladvasiliu

6 hours ago

> I have to question how practically useful this is. Ctrl+W or middle click on tab isn't that far off. Or open private window and close that, which is a smart thing to do anyway.

Users probably don't want to attract attention by using a private window (which they may or may not think about using), and most browsers I've seen have a distinct appearance when in private mode.

Ctrl+W in normal mode has the issue of leaving a trail: Ctrl-Shift-T or similar will bring it back.

arp242

2 hours ago

> Ctrl+W in normal mode has the issue of leaving a trail: Ctrl-Shift-T or similar will bring it back.

That also exists with this button: just press "back". Even easier.

grujicd

5 hours ago

Samsung Magician on Windows uses CTRL+W as a global shortcut and then it doesn't work in browser anymore. That took a while to figure out.

Toutouxc

2 hours ago

That's completely idiotic and whoever came up with that (apparently it even blocks crouch + walk in some games) should be tarred and feathered.

bjoli

5 hours ago

I think you are underestimating how much being in an abusive relationship or even just poverty in general (poor people are more likely to be abused, so they're double punished) reduces your options and opportunities.

This goes for everything. Place where you live. The food that is on offer. Work opportunities, and with that the ability to plan life. Even living large enough to have a private space, like offering your kids an undisturbed place to study or - like in the post - somewhere you can safely report abuse.

I have seen it more than once: if someone from a poor family grows up and does really well in school and in college and breaks with the life they had before that is usually not enough. Because when there is time to write a CV the kids from the middle class all had parents that made them do other things. Charity work. Play the trumpet with a youth orchestra that somehow got to play in Carnegie hall. Chemistry camp. Dancing with a youth ballet company at the met. The system is rigged from the start. True meritocracy was never a thing.

A feature like this takes a developer a short time to implement, and if it saves someones life or stops abuse it is worth it.

labster

5 hours ago

Your description is exactly meritocracy under the original definition. The second kid has earned all of the merits, and the ones possessing the most documents of merit get ahead.

lupusreal

2 hours ago

Believe it or not, a lot of users don't understand the control key and are afraid to touch it because they think it might break their computer. They may not even be able to readily find it on their keyboard since they aren't accustomed to using it, but do tune out and skim over the things on their computer they think they can't understand.

frereubu

5 hours ago

Does anybody have any stats for the use of these kinds of buttons? A few of our clients - victim services and honour-based abuse services - ask us to add these kinds of buttons, but I've always wondered they actually get used instead of e.g. people just closing the browser window. The issue for us with adding tracking is that it would slow the interaction which, even if it was only a few milliseconds, isn't something we want to risk. (Or worse, if the JS it breaks and the link doesn't work). I guess it would have to be some kind of post-hoc survey for victims of domestic abuse who've used a site and are now somewhere safe.

Edit - thanks to @jdietrich below there are some stats on this link, which shows a correlation between events you'd expect to increase the rush of domestic abuse, such as the Covid lockdowns: https://github.com/alphagov/govuk-design-system/discussions/... I do wonder how they got those stats though.

Edit 2 - I'm so glad this got posted! I've been wondering about this for ages and it's really nice to get some evidence for its use. Reading through the comments has also solidified my thinking around "why don't people just close the browser window" - many people who use honour-based abuse services are very computer illiterate, don't have time to learn about incognito windows / (Ctrl | Command) + W, and can only snatch computer time here and there. Abusers can look back at the browser history, but if the choice is between being discovered on an honour-based abuse website or the chance that the abuser won't look at the history, the second is clearly superior.

Edit 3 - I really wonder about the three-press shift keyboard shortcut. Real lack of discoverability, and my worry would be that the lack of consistency across sites would lead to situations where people are on non-gov.uk websites and think that keyboard shortcut would work there too. Although I suppose the fact that the first shift press activates the button in some way does tie it to the presence of the button on screen.

Edit 4 - It doesn't seem to be in use on any relevant gov.uk pages. The pilot on the "check for legal aid" pages seems to have ended and it's not on the pages about domestic abuse.

davedx

4 hours ago

Yeah the fact that there's no concrete demo beyond the basic JavaScript snippet/demo makes me wonder how well this actually works. I wanted to know how users are informed to press shift repeatedly to use the button? It's weird UX.

It does remind me of "boss keys" that old DOS games used to have.

appendix-rock

12 hours ago

> It’s intended to be a safety tool. A way for people in unstable, potentially violent, domestic situations to quickly leave the page.

An upsetting but nonetheless incredibly interesting abnormal UX problem to solve. I appreciate seeing this much thought being put into things like this.

kranke155

an hour ago

Gov Uk UX team I believe is doing some of the finest work in the world.

kortilla

11 hours ago

I’m curious about this history of this. What page are people on that might lead to domestic abuse?

What do they use frequently enough that they would learn about this exit functionality rather than just clicking a bookmark bar, closing the tab, or just switching the tab?

This seems like such a contrived scenario with a solution that only works for gov uk sites. Why not teach users how to switch or close tabs with keyboard shortcuts?

londons_explore

33 minutes ago

> This seems like such a contrived scenario

Agreed. I suspect the number of people assisted by this button is vanishingly small, and outweighed by the number of people who don't get the information they're looking for because they accidentally click the button and can't find their way back.

Or the number of people harmed because the "exit this page" UI is on some pages only (for example, it isn't here on HN), and that is even more confusing for users who aren't tech savvy enough to realise its part of the site not the browser and who could come to rely on it.

Overall, I think this button is poor UX and shouldn't be used, even on pages with sensitive content that it is intended for.

kelnos

10 hours ago

> What page are people on that might lead to domestic abuse?

I assume there's a .gov.uk page somewhere that lists resources for people who are in abusive relationships. I imagine if an abusive partner walked in to find you reading that, that might set them off.

kortilla

7 hours ago

Sure, but are they going to spend a bunch of time to learn how to use the magic exit button or just press ctrl-w to close the tab?

youainti

7 hours ago

I am highly technical (multiple linux machines at home) and I don't use ctrl-w. I didn't know it was a thing.

TeMPOraL

4 hours ago

I do, but only because it's a stupid-ass shortcut I keep triggering on accident.

thaumasiotes

4 hours ago

I don't really mind triggering ctrl-W by accident because ctrl-shift-T will undo the mistake.

An accidental ctrl-Q is much worse, because closed incognito windows can't be recovered.

umanwizard

31 minutes ago

I think all the major browsers can be configured to prompt before quitting.

scott_w

7 hours ago

If it’s the only tab you have open, it’ll look very suspicious that you’re just staring at the desktop…

PaulRobinson

6 hours ago

Imagine your abuser “lets you” use the computer for one hour a day. They monitor your browser history. They read your texts, your social media DMs, and browse your search history. They often watch you browsing, save going to the fridge to get a beer or to go to the bathroom. These are the moment where you think about trying to find help. It’s all you think about really: how to get out.

How likely are you to know keyboard shortcuts?

As a UX designer, would you not want to make a big safe UX button that you need no prior training or experience of, that you can trust to help you get out of a difficult situation.

Footsteps. Oh shit. They’re coming back. Is it Ctrl-W? Or Ctrl-V? Oh fuck, he’s nearly in the room. Quick, where’s the tiny little cross to close the window… oh, wait, click that exit page button, or just quickly hit shift a bunch of times. “Oh yes, I was just looking at the weather for tomorrow. I was thinking about whether to put some washing out on the line…”

eviks

5 hours ago

This scenario is contrived

> just quickly hit shift a bunch of times

How would you even know about this shortcut you never use anywhere, let alone remember it in a time of stress?

closewith

4 hours ago

> This scenario is contrived

This is a much more realistic user story than 99% you will ever read.

robertlagrant

2 hours ago

The main question is: how do you know to hit shift a load of times? Is that a standard thing being taught to people?

easton

11 hours ago

Another example: There’s a page in the iOS settings where you can remove people from your family group and change your password (or do other things you might do if someone was after you). It has a “quick exit” button that kicks you back to the Home Screen, but also completely kills the Settings app so said person wouldn’t know you were on that page if they yoinked your phone.

https://support.apple.com/guide/personal-safety/how-safety-c...

rsynnott

36 minutes ago

> What page are people on that might lead to domestic abuse?

The police, the divorce services, health services pages about contraception, abortion, sexual assault, LGBT youth services, etc etc etc. Think people who are already being abused, mostly.

rjknight

11 hours ago

I would really like to know whether this feature gets any (non-accidental) use. It's certainly an important problem to solve, and I can see the technical merit in the solution proposed. What I'm left wondering is how this solution is most effectively communicated to the people who need to know about it, such that they're able to make use of it correctly in the critical moments when they need to use it. For obvious reasons there are probably no good statistics on this, but I wonder what the user research was like.

froggerexpert

11 hours ago

> This seems like such a contrived scenario with a solution that only works for gov uk sites. Why not teach users how to switch or close tabs with keyboard shortcuts?

+1. "Close tab" is more robust, well-supported and well-known.

It seems more likely a user will load an inoccuous page as a decoy, than learn triple-shift is a quick exit.

Still, interesting read, to hear the reasoning. Would like to see empirical evidence/user testing.

scott_w

7 hours ago

If it’s the only tab open, you’ll raise suspicion if your partner walks in to you staring at the desktop

robertlagrant

2 hours ago

I think the point is learning to have two tabs open, one incognito, will work everywhere for all resources, whereas this bespoke interaction needs to be memorised just for this websites.

oneeyedpigeon

4 hours ago

It wouldn't be the desktop, would it? Wouldn't it be an 'empty' browser window? Still just as suspicious, of course, but I wonder if some/all browsers do something special in that case—e.g. default to the home page. They certainly could, as could a plugin.

scott_w

4 hours ago

Chrome closes the window on the last tab. It's splitting hairs, however. As you said, it's still raises suspicion which, to a person in a domestic violence situation, is not what they want.

TheRealPomax

8 hours ago

<partner walks in> <they see a tab getting closed> <they muscle their way in and restore it> <someone gets a black eye>

vs

<partner walks in> <nothing really special about a tab loading the weather> <you still live in fear but you're not getting physically abused>

froggerexpert

8 hours ago

I understand the happy case. When it works, great.

My critiques were on the sad cases:

* Presses <Ctrl><Ctrl><Ctrl>. Wait why isnt this working? Too late.

* Presses <Shift><Shift><Shift> on another sensitive site that doesn't implement this. Too late.

* Presses <Shift><Shift><Shift> on a poorly supported browser, or after the functionality is removed, or after it conflicts with OS-level (it might not today, but who knows about future OS updates)

PaulRobinson

6 hours ago

We should probably bake it into browser standards then.

oneeyedpigeon

5 hours ago

Absolutely. This would solve the above problems, plus any problems involving JavaScript bugs that would render the whole thing inactive. Just a shortcut to go to the root of the site seems appropriate. Or maybe sites could configure themselves for a "safe site" equivalent if their whole content is a risk.

kortilla

7 hours ago

The timing of those two scenarios is different.

Either the abuser walked in while the person was still on the page with the big red button or not. It is not faster to press the big red button or shift 3 times than it is to close a tab.

logifail

6 hours ago

> It is not faster to press the big red button

Indeed.

Surely Ctrl+W (with a 2nd decoy tab already there and at BBC Weather) is 10x faster than finding and clicking a button on the page you're reading?

EDIT: another issue with the Exit This Page as implemented on eg https://www.camden.gov.uk/planning-to-leave-an-abuser - if you open it in a private browsing session, and click it, it sends you to Google, but of course there the first thing you get is the massive cookies pop-up. So wouldn't that be a bit of a red flag to whoever just walked in? :/

eviks

5 hours ago

Partner walks in

They see a page changing

Black eye

yakshaving_jgt

4 hours ago

Or, perhaps even more likely, abuser stealthily enters the room and silently observes the victim to try to extract more damning information before admonishing (or rather, attacking) them.

elevatedastalt

11 hours ago

Many possibilities. Something seeking legal help, or an info page about domestic abuse itself, or something around financial literacy.

frereubu

5 hours ago

That information is out there, but people in these kinds of circumstances don't always have unrestricted internet time to research it. They might just be able to snatch a few minutes here and here and therefore not know much about how to use browsers etc.

This is particularly the case for an honour-based abuse service (forced marriage, honour killings etc) that we work with for example.

scott_w

7 hours ago

If it’s the only tab open, switching isn’t an option. Women living under the threat of violence will be very stressed, so won’t be well placed to setup their browser ahead of time.

imdsm

19 minutes ago

I had a situation where I needed to speak to Police some time ago. An sms about the weather was sent, which allowed me to speak to someone, and then after the call, it took me to bbc weather. It was brilliant and I really commend it.

DrBazza

43 minutes ago

Ideally Jira would have something similar so that when you create a new issue and accidentally click somewhere or press escape, it doesn't delete the ticket you've just spent 5 minutes creating.

shultays

2 hours ago

  In virtually all browsers, pressing Escape while a webpage is loading stops the loading process.
Whoa, never knew about this or noticed it

zerovox

10 hours ago

I understand that they couldn't use the Escape key, and so having an alternative makes sense, but I'm not sure as a user how I would ever discover the behavior of pressing "shift" three times.

jdiff

9 hours ago

Escape might be more intuitive but it's not more discoverable. Shift is used often when inputting information, and the mentioned visual feedback give this behavior an opportunity to be discovered.

Having said that, regardless of the key the guidelines on using this pattern say that you should explicitly inform the user of the feature before they first encounter it.

https://design-system.service.gov.uk/patterns/exit-a-page-qu...

hamdouni

5 hours ago

This makes me laugh

"As a result of advertising people being bastards, more and more of what the web platform can do is ..."

oneeyedpigeon

5 hours ago

It was refreshingly candid - then I remembered we're reading a government blog where they can say that kind of thing with impunity.

hbrav

34 minutes ago

The individual has impunity of the department has impunity?

Not sure if you know this, but it might be of interest: in the UK speech, within the House of Commons (maybe the Lords too? I'm unsure) is specifically protected from defamation actions. An MP could stand up and say "Mr Smith murders kittens in his spare time" and Mr Smith would have no ability to sue. However, this does not apply to MPs outside of parliament.

switch007

4 hours ago

It's a personal blog btw. And there is absolutely no way a UK Gov blog would call Google bastards.

oneeyedpigeon

3 hours ago

I didn't read it as a dig at Google specifically, but I accept your general point is totally correct.

globular-toast

4 hours ago

What makes you think it's a government blog? Looks like a personal blog to me.

oneeyedpigeon

4 hours ago

Sorry, I'm not totally sure why I made that assumption. I thought I'd spotted a '.gov' domain, but clearly it's not. I guess some of the writing also implies it (e.g. "Last year [...], we launched the GOV.UK Design System’s Exit this Page component") but, of course, this could just be a contractor.

rsynnott

5 minutes ago

I _think_ they're an employee of the gov.uk design service?

trollbridge

6 hours ago

A while ago we did a site for a nonprofit focused on domestic violence.

We preloaded Kohl’s (a department store sort of retailer in America) and fiddled with the safety exit button to make sure Kohl’s came up really quickly. If we would have worked on the site longer, I would have a done a rotation of a couple of different stereotypical shopping websites. (Kohl’s was picked by the organisations’s executive director who, unfortunately, had plenty of first hand experience with domestic violence.)

eviks

6 hours ago

The explanation doesn't make sense without addressing the elephant in the room - why not teach users to use the universal "tab close" action via a common shortcut? That one is immediate unlike loading another page

inejge

5 hours ago

If yours is the only tab, "close tab" will usually close the whole window, potentially leaving you with an empty desktop. Being caught staring at nothing would be suspicious in the situations where "exit page" is supposed to be used. The weather page is comparatively innocuous. (Until the word gets around...)

_qua

27 minutes ago

Anyone who is smart enough to use this weird triple shift key shortcut is intelligent enough to preload a different site in another tab and use the close tab shortcut. I would guess there is almost complete venn diagram overlap between people who can learn this weird shortcut and people who can deal with this threat in any other way using normal browser functions.

eviks

5 hours ago

First, you wouldn't be staring at nothing, you'd be reopening the browser / opening Solitaire or something

But also a better way would be to ask the user to open a second tab (or another app) so that it's not the only tab/app.

Still beats remembering a unique shortcut.

frereubu

5 hours ago

Many people in abusive situations have very limited opportunity to use computers, and may well not have time to learn about things like "tab close" actions. This doesn't stop people who do know about those shortcuts from using them.

YoumuChan

9 hours ago

Shift key is widely used in Eastern Asian input methods to switch between English and Asian scripts. Pressing Shift while holding Alt is the way to cycle through different input methods on windows systems. Using shift key is a decent idea for Latin script users, but is terrible for Asian script users.

robin_reala

7 hours ago

That’s a less likely setup for a GOV.UK user though.

nottorp

5 hours ago

Which Latin script? :)

Everyone on the nearby continent has some accented characters and possibly both English and their national keyboard installed.

Incidentally, this is a major complaint with smartphone OS designers that only speak English and don't realize there are places where people mix languages daily. That predictive spell checker should be configurable to accept more than one language at a time...

vehemenz

10 hours ago

1. This kind of browsing is more likely to be done on a phone, in private. I find the scenario a bit contrived in 2024.

2. It seems a bit weird to be concerned about UI patterns if you earnestly want this component to do its job.

3. If it's that important, the Escape key event can be added after DOMContentLoaded. Warn content authors to not overuse the component, and it would be fine. You can still have the triple-Shift key event for those cases that they specifically call out.

FridgeSeal

9 hours ago

Its entirely plausible that someone in an abusive relationship is a number of mitigating circumstances:

- they don’t have a smartphone, or it’s been taken off them

- they’re forced to use a desktop because their abuser doesn’t want them to do things in private easily

- plausibly mobile has something different entirely, given that this appears to be desktop focused.

- They mention escape is intercepted by most browsers to stop loading, if someone is interrupted midway and panics and starts hitting escape, they could plausibly end up _stuck_ on the page they were trying to hide from their abuser.

frereubu

4 hours ago

1. A large number of people who need this service are likely to be victims of various forms of coercive control. This is a decent, quick summary of what that means in practice (PDF): https://www.leeds.gov.uk/docs/One%20minute%20guides/One%20Mi...

2. I don't understand this comment. Surely this is a perfect example of when you want a component to work as well as possible, including UI research?

3. The mAjor point here is that the functionality of the escape key is ambiguous. It can do various things in various contexts, so you can't rely on people to use it for that, and visitors can't rely on it because it might just e.g. minimise a maximised window on MacOS, leaving the website on-screen.

jstummbillig

4 hours ago

This is perfect. Whenever the idea pops up that design/code/system is done because of AI I am mostly confused.

Everything is so bad and requires so much though to even get to "decent"! Our current standards are so low, because we can not afford higher standards — but when paying attention to the world, anywhere, it does not even take effort to find an instance of a (systemic) design problem that could be fixed.

Granted, reconfiguring our system to pay for that is an outstanding issue, but I don't think that's because it requires much fantasy to find things that could be done and that would be appreciated by us and the people around us.

airpoint

7 hours ago

> BBC Weather’s homepage is a content-rich page. Users have a reason to be looking at it and to be looking for an extended period of time.

Most of that rich content is obstructed by them bloody cookie warnings, on first visit. That’s not a very convincing simulation of “I’ve been looking at this page for the last 5 mins!”

colanderman

7 hours ago

I often leave cookie popovers unclicked. Sometimes they take an annoying amount of work to decline cookies, and they can be used to cover video ads anyway.

cwillu

7 hours ago

Hmm, I don't get a cookie banner on my browser, even in an incognito window with uBlock turned off.

oneeyedpigeon

4 hours ago

I get one here in the UK, in incognito. It's actually one of the nicest cookie banners you'll ever see—just 75px tall at the top of the page, and it doesn't float so it disappears when you scroll. I recommend at least trying to see it, to appreciate its superiority over all the other cookie banners.

robertlagrant

2 hours ago

I'd rather they just didn't track me.

razakel

36 minutes ago

They don't if you're in the UK.

tanbog45

2 hours ago

I make sites for non-profits regularly and have been asked to add exit/escape buttons a few times. There more time Ive spent thinking about the problem and researching solutions the more I think they are a bad idea.

1. Lots - if not most - traffic is from mobile these days. Most people already know the fastest way to exit a page on mobile - the home button/action. Adding anything else is just adding confusion. 2. Unless you are going to great lengths - ie pre loading a page and maybe dropping parts of the dom and dealing with evidence in the history - are you actually doing anything much to help the user exit your site? How motivated/skilled a person are you defending against? 3. If your exit button is just a glorified link or redirect what is the point? It will still be in the history and if they have slow internet they could end up just staring at your site while the redirect loads. 4. For some organisations having such buttons is more about "showing" they have it than how useful it actually is to the user. 5. I have tried to push for a page/link to basic internet safety information. Educating visitors would be much better than trying to engineer their personal security day. 6. I've struggled to find good academic/research work on such features. Seems like it would be a good area for a UX researcher but I've not found much actual work.

hengistbury

an hour ago

I see these points as reasons why it might not be a good idea, but they don't explain why it is a bad idea.

Other methods for leaving the site still work. Even if the button isn't the best way to leave the site, if it helps in more cases than it hurts then it's a net benefit.

These buttons are essentially panic buttons, and when a person is panicking the big red exit button might end up being the only exit they can find.

kayson

11 hours ago

How are people expected to know about the Shift key functionality?

kelnos

10 hours ago

Yeah, it seems a little obscure. Here's a test page with the functionality:

https://design-system.service.gov.uk/components/exit-this-pa...

One cool thing is when you first hit the shift key once, the "Exit this page" button expands vertically, and shows three small circles, one now filled in. So it makes it obvious that hitting the shift key did something related to that button. So if you hit the shift key for any other reason, you'll see something happen.

But still, I agree it seems a little hard to discover.

Izkata

9 hours ago

Out of curiosity I edited the page to put a textarea on it, so I could see what happens when you're typing a sentence and happen to use Shift 3 times: It breaks the button.

If the cursor is in the textarea, tapping Shift without any other keys will add 1 circle, but if that wasn't the 3rd one, any additional Shift will remove all the circles and they don't come back. You have to click outside the textarea and hit Shift 4 times to trigger it (the first one doesn't register any circles).

It seems like they tried to prevent accidental triggers (if you have 1 or 2 circles and hit anything except Shift they all disappear, and if you hold Shift while hitting another key you don't get any in the first place), but got something slightly wrong.

kypro

10 hours ago

That's what I wondered. Presumably services implementing it will add info about using the button before starting the journey, but I'm surprised there's no design system guidance about this. Without that information the button is far less useful.

YPPH

8 hours ago

Shift is not ideal either. On Microsoft Windows, pressed thrice in quick succession will prompt to activate sticky keys, and divert focus from the web browser.

Aaron2222

6 hours ago

It's five times, not three.

RockRobotRock

10 hours ago

This is a great idea! How come when I google "gov uk domestic violence" none of the govt pages have this button on them?

andrei-akopian

9 hours ago

My first search result was thehotline.org, and it does have a button that redirects to google.com. (But that's a US site)

> You can quickly leave this website by clicking the “X” in the top right or by pressing the Escape key twice.

And it does have some kind of Escape key functionality.

The gov.uk page has some listed hotlines by nation (https://www.gov.uk/guidance/domestic-abuse-how-to-get-help#g...), but none of them are actually using that exact red button:

- https://www.nationaldahelpline.org.uk/ uses green bookmark in bottom right and redirects to google.co.uk

- https://dsahelpline.org/ has a green area at the bottom right

Daz1

4 hours ago

"Content warning: This blog post references domestic abuse and violence but doesn’t go into specific detail.

I’m not an expert in that topic at all, so I may not use the preferred terminology in all instances. Sorry."

What the hell is this?

frereubu

4 hours ago

I guess this is probably a rhetorical question. But if you've been a victim of domestic abuse you may not want to read about it when you think you're just reading about a gov.uk web component, particularly if the abuse was recent and you're still traumatised by it. The author is just trying to be sensitive to that.

The language apology-in-advance does feel a bit like overkill though. I'd suggest a generous interpretation is that, given how things often work these days, they don't want people to get caught up in discussions about terminology and just want to focus on the tech.

BostonFern

4 hours ago

Read the blog's "about" page.

thaumasiotes

4 hours ago

For reference:

> I'm an agender (I use it/its pronouns), asexual, alterhuman robot. I'm also a shapeshifting critter on the internet.

This person has absorbed the idea that it's a sin to use natural language to talk about normal phenomena, and the idea that it isn't possible to know what kind of language wouldn't be sinful, but not the idea that maybe that isn't a desirable state of affairs.

joelanman

4 hours ago

frereubu

4 hours ago

Thanks. Interesting to note the "interruption page" and "safety content page" parts, which I think deals with quite a few queries in the comments about how people will know what to do.

Also just a note that the first two GOV.UK links under "Research on this pattern" don't include live examples any more.

tetris11

12 hours ago

They're pretty forthcoming for what I assume to be an government agency.

I wonder why the gov.uk team are getting so much publicity(?) In the last few years.

As much as I love the aesthetic, I'm developing a fear that they'll soon spin off into a startup with some kind of paid model, and that government websites will regress.

Irrational fear, I know, but I cant shake off the startup-vibes I'm getting when I read such posts about what is essentially a public service.

rsynnott

2 minutes ago

> As much as I love the aesthetic, I'm developing a fear that they'll soon spin off into a startup with some kind of paid model

I mean, unless the next PM is Zombie Thatcher, this seems like an excessive level of privatisation.

ascorbic

4 hours ago

This is all thanks to the GDS, which was formed in 2011 specifically to bring that kind of startup vibe to government. It's even based in Shoreditch, with the startups. A lot of alumni from GDS have gone on to consult with other governments, many of which have launched similar departments. The US equivalent is 18F, which involved collaboration with GDS.

https://www.gov.uk/government/organisations/government-digit...

https://18f.gsa.gov/

https://gds.blog.gov.uk/2015/01/20/gds-usds/

scott_w

7 hours ago

They’ve done this since the head of the Cabinet Office around 2010 set up a team to improve digital government services. There’s a lot of information published as to their methodologies and their teams present technical topics at conferences.

It’s likely part of their efforts to be more transparent, work with other governments and better support departments without having to be in 50 places at once. It’ll also help with recruitment.

adw

11 hours ago

> As much as I love the aesthetic, I'm developing a fear that they'll soon spin off into a startup with some kind of paid model, and that government websites will regress.

gov.uk got started, in part, because the 2009 financial meltdown left a lot of good startup designers and engineers with not enough to do (and made civil service jobs more attractive for a bit!)

fallingsquirrel

12 hours ago

fwiw this isn't an official gov.uk blog post. I mistook it for one at first too... I only double checked once I stumbled over the "advertising people being bastards" line.

tsimionescu

6 hours ago

> when I read such posts about what is essentially a public service.

Doesn't it make a lot of sense to be open about how a public service is built and delivered, maybe much more so than any for-pay service in fact?

nyanpasu64

9 hours ago

I got to the furry art at the bottom of the page before realizing this was a frontend developer's blog and not the government agency itself.

hollerith

6 hours ago

Ah, so you detected differences from the official British governmental furry art. Smart

caseyy

11 hours ago

Compared to many other countries, UK has a computer science culture that's very open about how technology is used in every day lives, and it invites public participation in new tech. This shows a lot in the government as well as its services like BBC and NHS, and the academia.

It's a very broad topic to cover so I'll be terse with evidence/examples only. UK government provides a lot of open data and APIs for the country [0], [1]. They are free and pretty much not throttled. They have a license [2] for a lot of this data which is formal but nearly as free as John Carmack's legendary hacker-friendly "have fun" license [3]. There is also a lot of historical Ordnance Survey data and historical legislation data from the National Archives. And of course, you can see the openness in how they have built gov.uk, as blog articles appear on HN about it quite often.

There is also a lot of government infrastructure provided to local governments, such as gov.uk Notify [4] or a freely available NHS website CMS (which is why many NHS websites work the same). There is a guide [5] mostly intended for government services but free for others to use on building accessible, secure and quite good-looking websites.

Most other governments I lived under are either technically behind UK or they have very advanced tech capabilities in certain branches of the government only (such as the armed forces) but keep it out of the public eye. Ultimately, I think it is the culture of welcoming everyone's participation in technology that makes UK gov so forthcoming and open with their tech and data. Doing this is seen as kind and civilised, which is how governments want to be seen. Of course, there are still areas of improvement in how UK gov provides data, as there always are in everything.

Finally, I should mention you can find many BBC technology outreach programmes from the early days of home computing. They are all over YouTube if you search for "BCC home computing". There was and continues to be a lot of techno-optimism in the country. It is one of the admittedly not many things that persist from the pre-austerity times.

[0] https://www.data.gov.uk

[1] https://www.api.gov.uk/index/#index

[2] https://www.nationalarchives.gov.uk/doc/open-government-lice...

[3] https://github.com/id-Software/DOOM/blob/master/README.TXT (before GPL became popular, id software code was distributed with this readme that said "Have fun")

[4] https://www.notifications.service.gov.uk

[5] https://frontend.design-system.service.gov.uk

ascorbic

4 hours ago

This isn't really an example of UK culture. 15 years ago, UK gov sites were as bad as everywhere else. Some of the small number of good things that I can credit the Cameron government were a few of these changes, including the establishment of the Government Digital Service and changing "IT" education from learning how to use Word, to actually teaching all kids coding, starting in primary school.

caseyy

3 hours ago

It is culture. The government doesn’t just provide these APIs, people use them. End even if you compare Harvard’s CS50 vs CS courses in the UK, you will see that it’s a lot more oriented around computing in every day life. The BBC home computing shows and their success itself is a bit of a unique phenomenon in the UK. Many other countries had these shows but they never went mainstream, most only attracted viewership of enthusiasts. There is a strong cultural element.

alephnerd

10 hours ago

> This shows a lot in the government as well as its services like BBC and NHS, and the academia

Salaries play a significant role.

Unlike a lot of other countries, private sector salaries for SWEs suck in much of the UK, and gov.uk (in reality part of the Civil Service), GCHQ+MoD, and BBC can pay fairly competitively and give a fairly decent pension compared to private sector gigs.

That said, I'd disagree with NHS IT - it's almost entirely outsourced to regional MSPs who suck (and I say this as a former vendor who's helped sell products those guys use in NHS environments)

ata_aman

10 hours ago

Would be pretty cool if it also changed the page navigation history to obscure where the user was before visiting bbc weather. If users taking the triple click action are presumed to be in distress, you'd want to remove the ability of the other party to simply click "back" and see where they were.

VoidWhisperer

10 hours ago

This site is flagged by malwarebytes as being compromised for some reason - I'm assuming this is a false positive given that no one else has been having issues

ReverseCold

10 hours ago

Wait why not have both esc x3 and shift x3 work? Any of these are "weird" keypresses right?

Moogs

8 hours ago

The concern with Esc is that if you hit more than 3 times the user will be stuck on the page. The first 3 presses would trigger the redirect, the 4th press would be intercepted by the browser and stop the page load.

djtango

8 hours ago

Should have thought like a vimmer and used caps lock instead

mrinterweb

7 hours ago

On a UK keyboard, you use the Brexit key

gjsman-1000

9 hours ago

I don’t understand why this is an either/or. It could be Shift x3 or Esc x1. Tell the user to Shift x3 times, but if they forget or use habit, Esc will still be an option.

TonyTrapp

4 hours ago

Someone might be panicking and press ESC twice "just to be sure". Your average user won't know that the second press will cancel the redirection process, inducing further stress and potentially completely closing the opportunity to move away from the page before the abuser sees it.

tgv

4 hours ago

If you tell people they can use escape, they might press it too soon or repeatedly, preventing the very action they require. Nobody intuitively uses Esc to go to another page, so it's something you really need to be instructed to do. It makes sense to me.