mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 18:48:11 +08:00 
			
		
		
		
	Added Home, End, PageUp, PageDown events.
Added handling for Home and End for input component
This commit is contained in:
		| @@ -44,6 +44,12 @@ struct Event { | ||||
|   static const Event TabReverse; | ||||
|   static const Event F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12; | ||||
|  | ||||
|   static const Event Home; | ||||
|   static const Event End; | ||||
|  | ||||
|   static const Event PageUp; | ||||
|   static const Event PageDown; | ||||
|  | ||||
|   // --- Custom --- | ||||
|   static Event Custom; | ||||
|  | ||||
| @@ -53,6 +59,7 @@ struct Event { | ||||
|   const std::string& input() const { return input_; } | ||||
|  | ||||
|   bool operator==(const Event& other) const { return input_ == other.input_; } | ||||
|   bool operator!=(const Event& other) const { return !operator==(other); } | ||||
|  | ||||
|   //--- State section ---------------------------------------------------------- | ||||
|  private: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 d
					d