Florian Bruhin
e8d5fb5cca
Normalize keybinding with :bind
2018-02-27 07:51:14 +01:00
Florian Bruhin
214e750c69
Adjust test_configcommands.py
2018-02-27 07:51:07 +01:00
Florian Bruhin
b1f4b1eaba
Fix :unbind with already bound keys
...
The previous change was incorrect and caused a regression (test_unbound_twice)
2018-02-27 07:40:54 +01:00
Florian Bruhin
49f8bc3d63
Use KeySequences correctly in test_config.py
2018-02-27 07:37:55 +01:00
Florian Bruhin
fa29a0b686
Expect capitalized bindings in test_models
2018-02-27 06:58:39 +01:00
Florian Bruhin
1b0aea5e05
Bring simple bindings to front in get_reverse_bindings_for
2018-02-27 06:56:57 +01:00
Florian Bruhin
8416e97c6c
Fix type which is stubbed in test_models
2018-02-27 06:50:57 +01:00
Florian Bruhin
01462008c9
Clearly separate yesno/prompt key modes
2018-02-26 22:49:15 +01:00
Florian Bruhin
d9ae3fd5aa
Fix more hinting issues
2018-02-26 20:49:02 +01:00
Florian Bruhin
de3b4adfd8
Don't force-follow hints when typing chars
2018-02-26 20:48:49 +01:00
Florian Bruhin
6fc391986f
Fix KeyInfo.text() for space
2018-02-26 20:48:22 +01:00
Florian Bruhin
e9d58dae2a
Fix getting individual items from KeySequence
2018-02-26 20:48:11 +01:00
Florian Bruhin
9f0e1a98a0
Make hint keybinding inhibition work
2018-02-26 20:22:52 +01:00
Florian Bruhin
8bce2ba8e8
Fix expected message
2018-02-26 20:03:21 +01:00
Florian Bruhin
f1b20f6dc4
Fix forward_unbound_keys test
2018-02-26 20:02:43 +01:00
Florian Bruhin
1444634abb
Fix :fake-key test
2018-02-26 14:26:12 +01:00
Florian Bruhin
bb647123b7
Fix invalid key sequences
2018-02-26 14:13:46 +01:00
Florian Bruhin
2698b8bb63
Fix unicodedata check
2018-02-26 13:47:45 +01:00
Florian Bruhin
f15e2285ba
Fix bindings.key_mappings
2018-02-26 13:41:01 +01:00
Florian Bruhin
0afaf2ce89
Fix capital chars after string change
2018-02-26 11:48:10 +01:00
Florian Bruhin
508a12a84c
Try fixing KeyInfo.__str__ with lower-/uppercase chars
2018-02-26 11:36:24 +01:00
Florian Bruhin
1609e0d445
Fix keyhint widget
2018-02-26 11:16:56 +01:00
Florian Bruhin
16940db834
Refactor KeySequence initialization
2018-02-26 11:16:51 +01:00
Florian Bruhin
f92bb16408
Make config.bind work
2018-02-26 10:38:59 +01:00
Florian Bruhin
9aa37febbe
Make hints work
2018-02-26 10:33:18 +01:00
Florian Bruhin
be4cd94207
Try getting hints to work
2018-02-26 10:14:30 +01:00
Florian Bruhin
d077f38ac4
Store multiple QKeySequences in KeySequence
2018-02-26 09:13:53 +01:00
Florian Bruhin
79a337767a
Initial work at making :fake-key work
2018-02-26 09:13:44 +01:00
Florian Bruhin
e273f163a6
Add a KeyInfo class
2018-02-25 22:09:39 +01:00
Florian Bruhin
321d5c5d20
Merge branch 'master' into keys
2018-02-25 21:25:12 +01:00
Florian Bruhin
3df066c694
Update changelog
2018-02-25 21:10:35 +01:00
Florian Bruhin
54713f57e5
Merge remote-tracking branch 'origin/pr/3624'
2018-02-25 21:09:56 +01:00
Florian Bruhin
a98466336e
Update changelog
2018-02-25 19:58:23 +01:00
Florian Bruhin
52b5492c6a
Merge branch 'per-url'
2018-02-25 19:44:51 +01:00
Florian Bruhin
ba88fc43e0
Stabilize error page test
2018-02-25 19:40:38 +01:00
Florian Bruhin
abf4d10d5b
Add a test for :set -p with a pattern
2018-02-25 19:33:27 +01:00
Florian Bruhin
4c147b77c1
Add a test for the error page workaround
2018-02-25 16:35:02 +01:00
Florian Bruhin
a32d74e983
Fix lint
2018-02-25 16:08:15 +01:00
Florian Bruhin
d44ff5ba01
Don't load the URL immediately on :undo
...
On some pages like Qt's Gerrit, Indiegogo or Telegram Web, this caused a crash
with QtWebEngine and Qt 5.10.1 in
QtWebEngineCore::WebContentsAdapter::webContents().
I'm not sure what causes the crash exactly, but I'm guessing it's some kind of
race condition between loading the URL initially and deserializing the history,
which both ends up loading the URL.
Since restoring the history means we end up on the given URL anyways, let's just
not open the URL beforehand, which seems to fix this.
Fixes #3619 .
2018-02-25 15:55:20 +01:00
Florian Bruhin
97e00ba4b5
Only reload after setting changes when needed
...
Apparently, things work fine with Type.link_clicked even if we don't emit
predicted_navigation there...
2018-02-25 15:17:03 +01:00
Florian Bruhin
eade305965
Add a predicted_navigation signal
...
This is emitted when we know that we're going to visit some URL, but Qt doesn't
know yet. This way, we can change the settings early, and since we know which
settings have actually changed, prevent a change needing a reload in
_on_navigation_request.
2018-02-25 15:04:04 +01:00
Florian Bruhin
65a62b67a5
Go back to using tab.openurl on config changes
...
This seems to work most reliably at the moment...
2018-02-25 14:45:30 +01:00
Florian Bruhin
638e880604
Improve workaround for missing error pages
2018-02-25 14:45:30 +01:00
Florian Bruhin
bfb3a6594f
Try using tab.reload() on setting changes instead
2018-02-25 14:45:19 +01:00
Florian Bruhin
08bc55995b
First attempt at reloading pages after setting changes
2018-02-25 14:45:09 +01:00
Jay Kamat
820ffed07f
Remove test blacklists for 5.10
2018-02-23 18:06:57 -05:00
Florian Bruhin
2c96446bb9
Track which settings changed for a URL
...
This is currently only used so only changed settings are logged, but will used
for more in the next commit.
2018-02-23 18:11:33 +01:00
Florian Bruhin
75b65e2f11
Simplify attribute handling in Web(Kit|Engine)Settings
...
Let's just have lists in _ATTRIBUTES for WebEngineSettings as well, that allows
us to share some more code.
2018-02-23 17:59:12 +01:00
Florian Bruhin
fc6a0dbe64
Show a simple error page on loading errors without JS
...
We can't tell what exactly the error is, but it's surely better than nothing.
2018-02-23 17:29:17 +01:00
Florian Bruhin
98b2b67b8b
Add tests for per-URL JavaScript settings
2018-02-23 15:08:07 +01:00