Comments (16)
Interesting, thank you for reporting.
Is Control-F9 set to some other shortcut in you GNOME settings (Settings > Keyboard > Keyboard Shortcuts)?
from gnome-shell-extension-clipboard-indicator.
No.
FYI:
Where you use:
│ │ │ │ let accelString = Gtk.accelerator_name(key, mods);
│ │ │ │ SettingsSchema.set_strv(id, [accelString]);
In my extension in which I set shortcut, I use
│ │ │ │ const binding = Gtk.accelerator_name_with_keycode(
│ │ │ │ │ null,
│ │ │ │ │ keyval,
│ │ │ │ │ keycode,
│ │ │ │ │ mask
│ │ │ │ );
│ │ │ │ // console.log(` binding = ${binding}`);
│ │ │ │ settings.set_strv(`${name}`, [binding]);
following practices of other extensions.
I don't suffer funny issue of ALT-F9.
from gnome-shell-extension-clipboard-indicator.
I mean Control-F9
from gnome-shell-extension-clipboard-indicator.
Here are links to similar shortcut setting extensions
- https://github.com/jqno/gnome-happy-appy-hotkey.git
- https://github.com/osamuaoki/inputmethod-shortcuts (mine)
from gnome-shell-extension-clipboard-indicator.
Hi, This is FYI (I may have found better reference code.)
I found
More specifically
This seems to be another one and follows exactly the same logic as C code:
- https://gitlab.gnome.org/GNOME/gnome-control-center/-/blob/main/panels/keyboard/keyboard-shortcuts.c
I am thinking to follow gnome-control-center since it is most tested.
from gnome-shell-extension-clipboard-indicator.
FYI: Where you use:
│ │ │ │ let accelString = Gtk.accelerator_name(key, mods); │ │ │ │ SettingsSchema.set_strv(id, [accelString]);
In my extension in which I set shortcut, I use
│ │ │ │ const binding = Gtk.accelerator_name_with_keycode( │ │ │ │ │ null, │ │ │ │ │ keyval, │ │ │ │ │ keycode, │ │ │ │ │ mask │ │ │ │ ); │ │ │ │ // console.log(` binding = ${binding}`); │ │ │ │ settings.set_strv(`${name}`, [binding]);
Can you try implementing this is and opening a PR? 🙏
from gnome-shell-extension-clipboard-indicator.
I am a newbie javascript programmer and not familiar with ES5 style coding around Lang-thing. Since I just finish verifying the details using dummy extension code for my extension, let me wait a bit before creating PR.
I see bugs in the current gjs gdk for GTK4 document generation etc. I will work on them first.
from gnome-shell-extension-clipboard-indicator.
FYI: I was able to set back shortcut to Control-F9 etc. using dconf-editor
. Basically, erase data for pertinent key there to get back to original default. This doesn't fix shortcut registration problem itself but useful trick to fix recorded data.
from gnome-shell-extension-clipboard-indicator.
Can I just know where the shortcuts are mentioned so that i can change them?
from gnome-shell-extension-clipboard-indicator.
@SidonTheTroll open the clipboard indicator, click on "settings" and at the bottom you can change the shortcuts:
from gnome-shell-extension-clipboard-indicator.
@Tudmotu Well, I meant in the config files. Even if I can't reset it to default (I'm running low on braincells), I can just assign another hotkeys.
from gnome-shell-extension-clipboard-indicator.
@SidonTheTroll not sure I understand. You can change it from the settings.
To edit a shortcut, click on the right where it says "Ctrl+F9" then insert the new shortcut.
To delete a shortcut press backspace.
There is no config file for the shortcuts.
from gnome-shell-extension-clipboard-indicator.
I get the point. Have been using another for weeks. Just wanted to go back to the original configs but can't assign ctrl any of the shortcut
from gnome-shell-extension-clipboard-indicator.
I used dconf-editor to erase the current custom setting to regain as-installed default.
from gnome-shell-extension-clipboard-indicator.
Go to /org/gnome/shell/extensions/clipboard-indicator/
Then to /org/gnome/shell/extensions/clipboard-indicator/toggle-menu
- Click ERASE key button
- Click Apply button
FYI: I am on GNOME on wayland
from gnome-shell-extension-clipboard-indicator.
Thank you @osamuaoki using some of your references I managed to re-implement the key binding interface.
It will be released & fixed as part of the GNOME 45 version.
If you'd like to help me test it out, it's available on the gnome45
branch (requires a system with GNOME 45.beta, e.g. GNOME OS via Boxes).
from gnome-shell-extension-clipboard-indicator.
Related Issues (20)
- Paste button pastes the contents of the clipboard in place of the selected item in the history
- [BUG] pop up notification no working. HOT 6
- Shortcuts HOT 8
- image support doesn´t work HOT 1
- Doesn't work due to clipboard entry parsing HOT 10
- Unhandled promise rejection. To suppress this warning ..
- Encoding problems HOT 4
- RCE vulnerability when copying full system paths HOT 16
- "Copied to clipboard" notification appears every time I copy anything, with no option to disable it HOT 1
- [BUG]: Unhandled promise rejection HOT 7
- "Text will be here" is displayed in the tray and nothing happens by clicking on it. HOT 28
- Lag - Delay HOT 5
- Suggestion: make it work as Win+V on windows HOT 2
- [BUG] In-menu keyboard controls do not work HOT 2
- Scroll Bar is Inaccessible To Mouse HOT 1
- shows sensitive information on next and previous entries HOT 3
- Non-Latin characters doesn't work HOT 2
- History clears on screenlock HOT 1
- Feature Request: Paste on Select in Clipboard Indicator HOT 2
- Extension doesn't work any more HOT 7
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 gnome-shell-extension-clipboard-indicator.