j-delaney / back-to-backspace Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://chrome.google.com/webstore/detail/back-to-backspace/cldokedgmomhbifmiiogjjkgffhcbaec
License: MIT License
Home Page: https://chrome.google.com/webstore/detail/back-to-backspace/cldokedgmomhbifmiiogjjkgffhcbaec
License: MIT License
Bug reported via Chrome WebStore reviews.
Whenever Facebook Messenger's chat box is active, if backspace is pressed it will attempt to go back a page despite a text box being active.
I've only just noticed this so not sure if it's because of an update via yourself or YouTube, or maybe even localised to me, but using backspace whilst focused in the comment form input sends you back a page rather than deleting text. Pressing backspace in text input here on GitHub works as normal.
Win10 64bit / Chrome Version 52.0.2743.82 m
It's okay in other areas
Hi, Chrome also used to have the Shift-Backspace functionality. Would you be able to implement this as well?
It just goes forward instead of backward.
Example: http://b2b.devo.be
Start typing in any of the 2 input boxes and pres backspace, the previous page will load
Hello!
Love the extension. Just one request: there should be a blacklist for pages that you don't want for the extension to be activated on.
Thanks!
https://www.google.com/search?q=define+bachelor#duf3=0,duf3-4
Filed as support ticket on Google WebStore
With the developer tools open and "pause on exceptions" ticked, every web page throws an exception upon load
I used to be able to block this behaviour in javascript in the onkeydown event handler. But currently the browser goes back to the previous page before javascript can do anything.
Please add support for ftp sites.
Currently, the scripts checks the focused elements upon the page then performs the navigation against a blacklist.
Except that some sites use wonky ways of detecting keystrokes without using the blacklisted tags, or uses object / embed.
Instead, maybe the backspace handler should be issued on event bubbling on window
, and check for isDefaultPrevented
. This will make the event handler not interfere with pages which already have scripts intercepting the backspace key.
Additionally, a setTimeout closure could be set with timeout 0 inside the handler to ensure the checking happens strictly after all other handlers have fired.
When i open devtools and enable the Chrome mobile emulator it gives me this error:
inject.js:13 Uncaught TypeError: Cannot read property '1' of null
at inject.js:13
Doesn't matter what page.
Its the second icon in the devtools toolbar. I'm guessing it has to do with switching to touch input
If backspace is pressed in the Telegram Web chat, it will go back to the previous page
It doesn't work inside a shadow dom element, because document.activeElement will select the most outer custom element insted of the input.
Googles own "back-to-backspace" uses "var target = event.path[0];" to get the correct element, it works even inside a shadow element.
Another more hack'y way to do it is to check if it is a shadow element, and look inside of it if it is (this code is not fully tested)
function getFocusElement() {
var focusedElement = document.activeElement;
var focusShadowDomElement;
if (focusedElement == null) {
return false;
}
while (focusedElement.shadowRoot !== null) {
focusShadowDomElement = focusedElement.shadowRoot.activeElement;
if (focusShadowDomElement == null) {
break;
} else {
focusedElement = focusShadowDomElement;
}
}
return focusedElement;
}
#19 Is related to this issue
Reported on Google WebStore
AR: Observe Back button on the browser's top left corner - it's enabled (and navigates to to that empty "new tab" as well as Backspase click).
ER: Empty "new tab" should not be considered as an item of page back stack
Please tag your releases so we know which commit is released:
(Or whatever Hotmail is called nowadays.) When writing an email, the email textbox doesn't seem to register and pressing backspace takes you back a page rather than deleting text.
In any text input fields on Facebook's website, typing backspace will navigate back to the last URL
When I try to use the backspace button to delete some text inside a Flash app, it goes back to the previous page.
Adding 'embed' into the tagBlacklist would work but it could possibly create new problems with different embed elements.
I found this issue on http://www.shooter-bubble.fr/bubble-shooter.html. A textbox appears to enter my name at the end of the game.
Thanks for this useful extension, without it my Chrome would have been already uninstalled
it seems that this extension is not compatible with frames (example : my collection of links).
i know, frames are old fashioned ;-)
When using the backspace in Youtube comments, the entire block of text disappears, rather than 1 character. Is very counter intuitive, and is specific to Youtube comments.
Latest Chrome browser (Version 74.0.3729.169 (Official Build) (32-bit))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.