Commit Graph

24 Commits

Author SHA1 Message Date
Tor Hedin Brønner
75e66de782 keybind: super-t take window and place at final destination
This also fixes the rather strange behavior of super-ctrl-above_tab which
actually didn't move to the previous workspace.
2019-01-09 11:51:04 +01:00
Ole Jørgen Brønner
d5a7c81895 keybindings: cycle window height <super><shift>r 2019-01-05 12:52:52 +01:00
Tor Hedin Brønner
4eea221a39 keybindings: fix bindkey bindings for 3.30+
Keyhandlers doesn't take screen as the argument.
2019-01-05 12:08:43 +01:00
Ole Jørgen Brønner
43974ba50c Minor fixes keybinding system
- rebinding a schemaless binding lost it's implied options
- fix showNavigator example
- wrong documentaion in README
2018-12-09 14:53:53 +01:00
Ole Jørgen Brønner
3927af08c3 Cleanup: remove bitrotted tile-visible action 2018-12-08 16:09:40 +01:00
Tor Hedin Brønner
877726a2a2 Move keybind init to keybindings.js 2018-11-27 14:23:02 +01:00
Tor Hedin Brønner
145a8d3347 Polyfill global.workspace_manager 2018-08-27 20:33:34 +02:00
Ole Jørgen Brønner
5697f3a84c Bugfix: schemaless keybindings 2018-07-26 12:26:45 +02:00
Ole Jørgen Brønner
34fd715b77 Proper disable of schema-less actions/keybindings 2018-07-23 21:59:58 +02:00
Tor Hedin Brønner
25d9f3092f Only register actions in registerAction
enableAction is run on enable.
2018-07-18 22:37:34 +02:00
Tor Hedin Brønner
f8119ae0bf Record overrides in the actionIdMap
This means we can get rid of more cases in the ugly switch in navigator.

Guard against non mutter action names, but apply the override even when we can't
get the id.

For some reason restore-shortcuts (`<Super>Escape`) returns
KeybindingsAction.NONE.

Also remove setKeybinding
2018-07-18 22:37:34 +02:00
Tor Hedin Brønner
34f3166d7a keybindings: actually record and use the actionIdMap 2018-07-18 22:37:34 +02:00
Ole Jørgen Brønner
a64860bb47 Remove utils.as_key_handler 2018-07-18 22:37:34 +02:00
Ole Jørgen Brønner
61290f142d Prepare for navigator refactor + refactor switch-left/right/up/down 2018-07-18 22:37:34 +02:00
Tor Hedin Brønner
cdbf2a662c Add every custom Gnome Shell handler 2018-07-13 11:40:03 +02:00
Tor Hedin Brønner
ca4c78779d Only hijack needed actions when needed
We listen on the relevant schemas and redo all hijacked keybindings.
2018-07-13 11:40:03 +02:00
Tor Hedin Brønner
b12bc2bb52 Add key conflict machinery to settings.js
This is the common functions needed for both the extension side and prefence UI
side, so it goes in `settings.js`.

`Settings.findConflicts` searches for keycombo conflicts between our own
bindings and the built in Gnome Shell and mutter bindings, returning an array
like this:
```
[{ name: our own action name,
   conflicts: array of conflicting names
   settings: the settings schema the conflicting are part of
   combo: the key combo as generated by keystrToKeycombo},
 ...]
```

keystrToKeycombo now handles `Above_Tab` properly.
2018-07-13 11:40:03 +02:00
Tor Hedin Brønner
fc260da22d Consistently declare and use screen and display
Makes things shorter and removes language warnings of using undeclared
variables.
2018-07-12 16:14:26 +02:00
Ole Jørgen Brønner
e1bc0853a2 Disable and enable our keybindings more robustly 2018-07-06 12:16:37 +02:00
Ole Jørgen Brønner
71b6ee8f56 Unify regular keybinding api an schemaless keybinding api
Try to make it a bit more "action oriented":

  An action exists independently of its binding. It could conceivable be invoked
  by other means too.

Some weirdness from the marriage remain to weed out, but this is a working
stepping stone.
2018-07-06 12:16:37 +02:00
Ole Jørgen Brønner
351dc9a475 Delete code targeting old gnome-shell versions
We don't support those version
2018-07-06 12:16:37 +02:00
Ole Jørgen Brønner
d3f2d07cf9 Move keybinding bookkeeping out of extension.js 2018-07-06 12:16:37 +02:00
Ole Jørgen Brønner
f9fd005fa5 Utility function for checking if a key-combo is bound 2018-07-06 12:16:37 +02:00
Ole Jørgen Brønner
5bce8922c1 API for ad-hoc/schemaless/user keybindings 2018-07-06 12:16:37 +02:00