Strange behavior with accent shortcuts - javascript

I found this strange behavior of accent shortcuts on UK keyboard as for some users, Windows is interpreting ie. Ctrl + Alt + Shift + O as Shift + Ó and I haven't found a dependency. Happens on both Windows 10 and 11 and some devices.
Here is the link for testing to see if you can reproduce the issue.
https://jsfiddle.net/5szc0921/4/
Steps to test
Change keyboard layout to UK.
Proceed to the link
click Console (beta) at the bottom right.
click anywhere inside the white box
you should be able to see messages whenever you pressed buttons.
If you pressed the combinations, Ctrl + Alt + Shift + O and Ctrl + Alt + O, it should print specific messages of what keys are being pressed.
I've put 4 different cases.
Found: Ctrl + Alt + Shift + Ó
Found: Ctrl + Alt + ó
Found: Shift + Ó
Found: ó
For those people who having the issue, they cannot reach Case 1 and 2 as whenever they pressed the combination ( Ctrl + Alt + Shift + O & Ctrl + Alt + O ).
It either goes to Case 3 or 4 as the system cannot find Ctrl + Alt.
Any help or suggestion would be much appreciated.

Related

Why does it appear "1:powershell" at terminal in react.js?

Why does it appear "1:powershell" at terminal in react.js?
If you would like to change this:
Open Visual Studio Code and press and hold Ctrl + ` to open the terminal.
Open the command palette using Ctrl + Shift + P .
Type - Select Default Profile.
Select your prefered terminal from the options (zsh/bash/ect).
Click on the + icon in the terminal window.
The new terminal now will be your prefered terminal (zsh/bash/ect).

play video and download using webview

I need javascript code to detect play button of video on web-page in web-view and start downloading on click of button in android web-view
I have used javascipt code to solve this issue it download video but didn't play in web-page stuck video play button in website
page.loadUrl("javascript:(function prepareVideo() { "
+ "var el = document.querySelectorAll('div[data-sigil]');"
+ "for(var i=0;i<el.length; i++)"
+ "{"
+ "var sigil = el[i].dataset.sigil;"
+ "if(sigil.indexOf('inlineVideo') > -1){"
+ "delete el[i].dataset.sigil;"
+ "console.log(i);"
+ "var jsonData = JSON.parse(el[i].dataset.store);"
+ "el[i].setAttribute('onclick', 'FBDownloader.processVideo(\"'+jsonData['src']+'\",\"'+jsonData['videoID']+'\");');"
+ "}" + "}" + "})()");
page.loadUrl("javascript:( window.onload=prepareVideo;"
+ ")()");
I need javascript code that when I click on video default button to play so video starts playing and by clicking on other button defined by me to start download file

HTML/PHP Block news tabs on Android and iOS browsers

I use this code for codebar scan with cellphone, on Google Chrome works but on Firefox and Samsung Browser after scan barcode an another tab are created, and +1 tab per scan.
My code:
window.top.location.href = "zxing://scan/?ret=" + href + "profile_sps.php?barid={CODE}";
I tried several ways:
window.open("zxing://scan/?ret=http://rodrigovrodrigues.tk/sjb/profile_sps.php?barid={CODE}", "_top");
window.self.location.href = "zxing://scan/?ret=" + href + "profile_sps.php?barid={CODE}";
window.parent.location.href = "zxing://scan/?ret=" + href + "profile_sps.php?barid={CODE}";
And some others...
Any friend can help me with this?
Thanks for all help.

Jsbin same url address

I would like to ask is it possible to keep the same url address on JSbin? Like, I've done some things before and I want to add something now, without changing the url. Is it possible without having an account there?
This feature securely hidden, but (that saves us from the invasion of bins)
my experience:
never (NEVER) ("one does not simply") to press Ctrl + S (this and your problem - prevents jsbin to be the best);
at the entrance to another session (in another tab, or another browser, or rebooting browser):
Ctrl + S (only here :) ) (but more (and better) to change something, to see a new revision)
Alt + Back (or browser button "Back" - return to the previous page in browser history);
F5 (necessary);
"Delete" this Bin;
Alt + Forth (or the browser button "Forth" to return to the
next page browser history);
F5 (necessary).

htaccess file nomenclature creating problem in opening a popup window in IE

My htaccess file nomenclature creating problem in opening a window in IE
EDITED
I have to open a colour picker which needs t be opened in popup, and I have
window.open('picker.html', null, "help=no,status=no,
scrollbars=no,resizable=no,toolbar=
no" + move + ",width=" + w + ",height=" + h + ",dependent=yes", true);
my base url goes like this:
http://www.mydoamin.com/
and the htaccess file has rewritten the above url from http://www.mydomain.com/30/
but when i wish to open the popup in IE the htaccess doesnt work for it and gives me url as http://www.mydomain.com/30/picker.html
and hence i get msg as broken link or NOT FOUND
there is no such folder called "30" the path has to be like http://www.mydomain.com/picker.html
The rewrite rule of the particular page goes like this:
RewriteRule
^30/order-vinyl-banners.html
order_form.php?id=30 [NC]
why is it happening..
please help me to track it..
If you want to show http://www.example.com/picker.html, you need to tell the open() function so. Right now you're telling it "Open the URL picker.html relative to where I'm currently at", but you want "Open picker.html relative to the root". Try this instead:
window.open('/picker.html', null,
"help=no,status=no,scrollbars=no,resizable=no,toolbar=no"
+ move + ",width=" + w + ",height=" + h + ",dependent=yes", true);

Categories