summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorLibravatar Héctor <hector@hecrj.dev>2024-10-02 17:02:13 +0200
committerLibravatar GitHub <noreply@github.com>2024-10-02 17:02:13 +0200
commit5ee82b2ef0dc6ec1dfec1827b6687cdacf871ce2 (patch)
treeb81d687b14474688d6c8c69e2b3b2f7aeb4effda /core/src
parent40abed6e5c8a2bde08f7455800e916555468196d (diff)
parent32cdc99e928876ef75c6543362665d82cee63f4f (diff)
downloadiced-5ee82b2ef0dc6ec1dfec1827b6687cdacf871ce2.tar.gz
iced-5ee82b2ef0dc6ec1dfec1827b6687cdacf871ce2.tar.bz2
iced-5ee82b2ef0dc6ec1dfec1827b6687cdacf871ce2.zip
Merge pull request #2608 from ibaryshnikov/haskell
added physical_key to KeyReleased event
Diffstat (limited to 'core/src')
-rw-r--r--core/src/keyboard/event.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/keyboard/event.rs b/core/src/keyboard/event.rs
index 26c45717..6e483f5b 100644
--- a/core/src/keyboard/event.rs
+++ b/core/src/keyboard/event.rs
@@ -36,6 +36,12 @@ pub enum Event {
/// The key released.
key: Key,
+ /// The key released with all keyboard modifiers applied, except Ctrl.
+ modified_key: Key,
+
+ /// The physical key released.
+ physical_key: key::Physical,
+
/// The location of the key.
location: Location,