duckduckgo-privacy-extension icon indicating copy to clipboard operation
duckduckgo-privacy-extension copied to clipboard

[duckduckgo.com] "home" and "end" keys ignored

Open alexisfrjp opened this issue 8 months ago • 17 comments

I don't know where to post this annoying bug, let me know where I can report it for duckduckgo.com

Steps to Reproduce

  1. Open duckduckgo.com
  2. Type something and press "Home" or "End"
  3. Experience the inactive keys

image

Expected behavior: Cursor to be back to the beginning or end of the line.

Actual behavior: Nothing happens, keys are ignored.

alexisfrjp avatar Oct 11 '23 02:10 alexisfrjp

I tested on Chrome & Firefox Linux and can confirm the issue exists on both browsers.

Pressing Home or End does not move the cursor to the start or end of "test test" but instead selects the first or last search suggestion. This is default behavior even when a search suggestion wasn't selected beforehand.

lemondevxyz avatar Oct 15 '23 01:10 lemondevxyz

Will that never be fixed? I've stopped using duckduckgo since... Is it that complicated to support a normal form to support normal US keys?!

alexisfrjp avatar Nov 23 '23 07:11 alexisfrjp

Thanks for the report. I've filed this issue internally and will get back to you with their response.

sammacbeth avatar Nov 23 '23 09:11 sammacbeth

I just tested it and the keys are working.

omer-fsdev avatar Dec 09 '23 15:12 omer-fsdev

This is still an issue for me. The keys seem to activate the suggestions list instead of going to the start/end of the input.

samott avatar Feb 06 '24 11:02 samott

This is still a problem.

Consider the use case that the user has entered a query and duckduckgo has no suggestions. This is the case more often than not for me, and results in the keys being ignored with no apparent reason. Even when there are suggestions available, rebinding home/end to functions other than those expected is a pretty huge violation of the principle of least astonishment. Don't screw with basic keyboard functions. The easiest and most correct fix for this issue is to completely remove the home/end binding to search suggestions.

pancake-tongs avatar Mar 01 '24 16:03 pancake-tongs

Thanks alexisfrjp for bringing attention to this. I'd like to add my concern that this is still an issue, and a very frustrating one. I'd also like to add some additional information: the behavior of home and end keys being intercepted only happens on the main page, i.e. https://duckduckgo.com/. If I search for something and I'm taken to a query result page like https://duckduckgo.com/?q=search+terms&ia=web, I get full control of my keyboard back. Until this is fixed, I plan to search for something useless first, then do my actual search on the query result page as a workaround.

joecss avatar Mar 01 '24 19:03 joecss

For a work around, use

https://start.duckduckgo.com/

as described here:

https://www.reddit.com/r/duckduckgo/comments/128w291/homeend_keys_intercepted_on_search_webpage_once/

Personally, it difficult to comprehend why it was not fixed quickly.

kuiperzone avatar Mar 04 '24 14:03 kuiperzone

@sammacbeth can you assign this to me? I would like to work on it.

imsoumya18 avatar Mar 11 '24 15:03 imsoumya18

Today it started to happen for me on https://start.duckduckgo.com/ Super annoying! Firefox 125.0.2 (64-bit) on Linux.

Teuniz avatar Apr 29 '24 09:04 Teuniz

Yes, it's happening now also on https://start.duckduckgo.com/

Have switched to Brave for the time being, although nearly but not quite as good as DuckGo

kuiperzone avatar Apr 29 '24 12:04 kuiperzone

Same here with https://start.duckduckgo.com using Firefox, Brave Browser or Vivaldi (Linux 64bit). On the initial search page when suggestions are returned, they currently behave the same as Page Up and Page Down keys. Behavior returns to "standard" on the results page.

freebird61 avatar May 01 '24 12:05 freebird61

I used to use https://duckduckgo.com/50x.html to get around it.

But they just went ahead and broke that too today.

fartboygh avatar May 15 '24 08:05 fartboygh

Can't wait for DDG to fix and it's driving me nuts as it is. Here's a workaround for Firefox using a FireMonkey script.

// ==UserScript==
// @name             Fix DDG start page
// @match            https://start.duckduckgo.com/
// @version          1.0
// ==/UserScript==

document.addEventListener('keydown', function(e) {
  // End = 35, Home = 36
  if (e.keyCode === 35 || e.keyCode === 36) {
    e.cancelBubble = true;
    e.stopImmediatePropagation();
  }
  return false;
}, true);

freebird61 avatar May 19 '24 09:05 freebird61

Also works as a .user.js dragged into Extensions manager (developer mode) on chromium based browsers - tested on Brave and Vivaldi.

freebird61 avatar May 19 '24 10:05 freebird61