window: Fix Left/Right button direction for RTL

This also fixes the issue with the buttons triggering
focus changes when the action is deactivated because buttons
know have their own action.

Fixes #44
Issue #38
This commit is contained in:
Sophie Herold 2023-02-06 21:07:23 +01:00
parent 69889820cd
commit 74a067e3b8
2 changed files with 18 additions and 2 deletions

View file

@ -180,8 +180,8 @@ impl LpApplication {
self.set_accels_for_action("win.toggle-fullscreen", &["F11"]);
self.set_accels_for_action("win.set-background", &["<Ctrl>F8"]);
self.set_accels_for_action("win.previous", &["Left", "Page_Down"]);
self.set_accels_for_action("win.next", &["Right", "Page_Up"]);
self.set_accels_for_action("win.image-left", &["Left", "Page_Down"]);
self.set_accels_for_action("win.image-right", &["Right", "Page_Up"]);
self.set_accels_for_action("win.first", &["Home"]);
self.set_accels_for_action("win.last", &["End"]);