mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 03:45:08 +00:00
LibGUI: Allow basic keyboard navigation in GTableView.
Pressing Enter will now "activate" the selected index, meaning that the model gets a call to activate(GModelIndex).
This commit is contained in:
parent
e1d0a3f226
commit
b5dcad932e
3 changed files with 32 additions and 1 deletions
|
@ -24,12 +24,15 @@ public:
|
|||
int content_width() const;
|
||||
int horizontal_padding() const { return m_horizontal_padding; }
|
||||
|
||||
virtual bool accepts_focus() const override { return true; }
|
||||
|
||||
private:
|
||||
virtual void model_notification(const GModelNotification&);
|
||||
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
virtual void resize_event(GResizeEvent&) override;
|
||||
virtual void mousedown_event(GMouseEvent&) override;
|
||||
virtual void keydown_event(GKeyEvent&) override;
|
||||
|
||||
void update_scrollbar_ranges();
|
||||
int item_count() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue