Comments (7)
Maybe https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/commands is what you were looking for...
from offline-qr-code.
Ah, yes, found it: https://developer.mozilla.org/de/Add-ons/WebExtensions/API/commands/update
from offline-qr-code.
Yeah, indeed.
So maybe we can collect hot key combinations for different OSes that.
So as a default I would already propose. I just noticed "Ctrl+R" reloads the page, so we cannot use that. Ctrl+G also not available. The same with shift there, too…
Ctrl+Q quits the browser on many OSes (Linux and MacOS, I think), so we cannot use that too…
Mhh, which one is even still possible to use? 🤔
However, one thing will be clear: It is not customizable by the user. That makes things easier though, so I don't think this is particularly bad. 😄
The only thing we could do is offer some alternatives, but I think that is not really worth it. 😃
from offline-qr-code.
It seems changing the shortcut is actually possible to implement with Firefox, because this add-on writes:
Starting with Firefox 60 you can also change the default shortcut in the configuration panel (Firefox Beta, Firefox Developer Edition, and Firefox Nightly are already supported). The API is available only after Firefox 60.
So one would need to look at how they did it/what API they used.
from offline-qr-code.
The source code is at https://github.com/ReDEnergy/SessionSync
from offline-qr-code.
As for v1.2 I think a default hotkey would, however, be enough…
So I've opened #67 for this as a follow-up issue.
from offline-qr-code.
I think the hardest thing about this issue here actually is not the hot key itself, but that:
In such a case, it should be determinated, whether some text is selected. If it is, it should use that text for the QR code, otherwise just the URL.
This may require some content script to be injected (remember, @ENT8R 😉; I said we might need this again… 😆). Of course, not doing so is always preferred, but I see no other way of accomplishing it without some injection.
from offline-qr-code.
Related Issues (20)
- The "like addon" tip is too aggressive/too often shown HOT 9
- Extract information from a QR Code picture (.svg / .png / etc. ) HOT 2
- Save Page with Overlaid QR Code HOT 3
- Support define text template for generate similar QRs HOT 4
- Use system clipboard content than tab url to gen code. HOT 5
- Save QR SVG to copy-paste clipboard HOT 5
- Can we have a function to READ QR Codes as well HOT 2
- Updated translations for 'zh_TW': zh_TW HOT 1
- QR-code window does not open HOT 1
- Add shortcut icon to the address bar HOT 1
- Updated translations for 'uk': Ukrainian (Українська) HOT 1
- Configuration for hiding random tips HOT 1
- The undo button is too far from reset button HOT 10
- Automatically retrieve text from clipboard and generate QR - (pl) Automatycznie pobieraj tekst ze schowka i generuj QR HOT 3
- Encrypted exchange by QR-code channel HOT 5
- Spanish translation contribution HOT 8
- Updated translations for 'es': Spanish (Español) HOT 1
- Updated translations for 'zh_CN': zh_CN HOT 1
- Improve Contribution documentation HOT 1
- Add context-menu item for generating a QR code for _the current page_ HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from offline-qr-code.